Can someone help plzz!!!!




here is your answer in c#:Answer:
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Security.Cryptography.X509Certificates;
namespace CSACTUALDEMO
{
class Program
{
public static int a;
public static int b;
public static void Main()
{
int cases = int.Parse(Console.ReadLine());
int gradeseries = 1;
List<int> myList = new List<int>();
for (int forloop = 0; forloop <= cases; forloop++)
{
a = int.Parse(Console.ReadLine());
Console.WriteLine($"Enter grade # { gradeseries++}: { a } ");
myList.Add(a);
}
Console.WriteLine($"The maximum value is: {myList.Max()}");
Console.WriteLine($"The minimum value is: {myList.Max()}");
Console.WriteLine($"The mean is: {myList.Sum() / cases}");
Console.WriteLine($"The grades in forward order are:");
foreach (int a in myList)
{
Console.WriteLine();
}
myList.Reverse();
Console.WriteLine($"grades in reverse order: {myList}");
}
}
} Explanation: