public static void Main()
int markMath, markPhys, markChem,tot;
Console.Write("Input the marks obtained in Physics: ");
markPhys = Convert.ToInt32(Console.ReadLine());
Console.Write("Input the marks obtained in Chemistry: ");
markChem = Convert.ToInt32(Console.ReadLine());
Console.Write("Input the marks obtained in Mathematics: ");
markMath = Convert.ToInt32(Console.ReadLine());
tot = markPhys + markChem + markMath;
String trueMessage = "The candidate is eligible for admission.";
String falseMessage = "The candidate is NOT eligible for admission.";
Console.WriteLine((markMath >= 55)?trueMessage : (markPhys >= 65)? trueMessage: (markChem >= 50)? trueMessage: (tot >= 180)? trueMessage : ((markMath + markPhys) >= 140)? trueMessage : falseMessage);