static void Main(string[] args)
String[] stdName = new String[5] { "aa","bb","cc","dd","ee"};
int[] grades = new int[5] { 85,90,55,86,22};
Console.Write("enter name to find :");
String NameToFind = Console.ReadLine();
for ( int x = 0 ; x < grades.Length ; x++)
if (grades[x] > grades[z])
if (grades[x] < grades[t])
if (NameToFind == stdName[x])
Console.WriteLine("{0} you have the best scoor and {1} you have the worst scoor", stdName[z],stdName[t]);
Console.WriteLine("student name : {0} his grade is {1}", NameToFind, grades[y]);
Console.WriteLine("student name : {0} not found", NameToFind);