public static void Main()
int score, student, failScore , numberOfStudent , highScore;
Console.Write("How many students do you have? ");
numberOfStudent = Convert.ToInt32(Console.ReadLine());
Console.Write("Set the highest score ");
highScore = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter the score of your "+numberOfStudent+" students");
while (student != numberOfStudent)
Console.Write("\nenter a score of student ["+ ++student +"] : ");
score = Convert.ToInt32(Console.ReadLine());
Console.Write("The score you've enter is beyond 60");
if (score <(float)highScore*0.5)
Console.Write("Failed\n");
Console.Write("Passed\n");
Console.Write("\nAll of the students are Passed");
Console.Write("\n" + failScore + " students are Failed and need to take Remedial exam");