Hi there, l am still beginner at c# and wanted to know how l can add multiple records when using the console app. This is the excercise l have done so far:
l want to be able to add more student records and display the student with the top score.
Code:
string name;
string surname;
int score;
Console.Write("Enter Name:");
name = Console.ReadLine();
Console.Write("Enter Surname:");
surname = Console.ReadLine();
Console.Write("Enter Score:");
score = int.Parse(Console.ReadLine());
Console.WriteLine();
Console.WriteLine("{0},{1}, {2}",name,surname,score);
Console.ReadLine();
Comment