public float leftCylinder;
public float rightCylinder;
public static void Main()
Console.Write("Enter the name:-");
corneaN.name=Console.ReadLine();
Console.Write("Enter the Left Eye Cylinder Power:- ");
cornealc.leftCylinder=float.Parse(Console.ReadLine());
Console.Write("Enter the Left Eye Axis:- ");
corneala.leftAxis=float.Parse(Console.ReadLine());
Console.Write("Enter the Right Eye Cylinder Power:- ");
cornearc.rightCylinder=float.Parse(Console.ReadLine());
Console.Write("Enter the Right Eye Axis:- ");
corneara.rightAxis=float.Parse(Console.ReadLine());
Console.WriteLine("Information Stored as Follows");
Console.WriteLine("Left Eye:-"+cornealc.leftCylinder + corneala.leftAxis);
Console.WriteLine("Right Eye-:"+cornearc.rightCylinder + corneara.rightAxis);
corneasp.spherical=(cornealc.leftCylinder + cornearc.rightCylinder /2);
Console.WriteLine("Calculated Spherical Equivalent is " +corneasp.spherical);
Console.Write("If you want another prescription?");
char character =char.Parse(Console.ReadLine());
Console.Write("Thank you for choosing Cornea Care");
Console.WriteLine("Wrong input");