public static void Main()
Console.WriteLine("This is The Maximum Anesthetics Calculator For Anesthesiologists");
Console.WriteLine("\nThis calculator can be used to find the maximum amount of anesthics that can be safely administered to a patient. The answer will be printed in terms of carpules.");
Console.WriteLine("\n-----------------------------------------------------------------------------------------------------------------------------------------------------------------");
Console.WriteLine("\nWhat anesthetics are you going to be administrating to your patient?");
string drug = Console.ReadLine();
Console.WriteLine("\nWhat is Your Patients Weight? (kg)");
string Lw = Console.ReadLine();
double Lweight = Int32.Parse(Lw);
double Lpatientan = maxdose*Lweight;
double Ldrugpercarpule = 1.8*solution;
double Lfinal = Lpatientan/Ldrugpercarpule;
Console.WriteLine("The maximum amount of Lidocaine that can be administerd to this patient is " + Lfinal + " carpules");
Console.WriteLine("What is the maximum dosage of this medicine?(mg/kg)");
string md = Console.ReadLine();
double maxdosage = Int32.Parse(md);
Console.WriteLine("What is the absolute maximum dosage of this medicine?(mg)");
string amd = Console.ReadLine();
double absolutemaxdosage = Int32.Parse(amd);
Console.WriteLine("What is the solution percentage of this medicine?(%)");
string sp = Console.ReadLine();
double solutionpercentage = Int32.Parse(sp);
Console.WriteLine("\nWhat is Your Patients Weight? (kg)");
string w = Console.ReadLine();
double weight = Int32.Parse(w);
double patientan = weight*maxdosage;
if (patientan > absolutemaxdosage)
patientan = absolutemaxdosage;
double solutionmg = solutionpercentage*10;
double drugpercarpule = 1.8*solutionmg;
double final = patientan/drugpercarpule;
Console.WriteLine("The maximum amount of " + drug + " that can be administerd to this patient is " + final + " carpules");