public static void Main()
Console.WriteLine("Input the marks obtained in Maths: ");
maths = Console.ReadLine();
Console.WriteLine("Input the marks obtained in Physics: ");
Physics = Console.ReadLine();
Console.WriteLine("Input the marks obtained in Chemistry: ");
chemistry = Console.ReadLine();
int totalAll =Int32.Parse(maths)+ Int32.Parse(Physics)+ Int32.Parse(chemistry);
int totalMathPhysics =Int32.Parse(maths)+ Int32.Parse(Physics);
Console.WriteLine("The candidate is eligible for admission.");
}else if(totalMathPhysics >= 140)
Console.WriteLine("The candidate is eligible for admission.");