public static void Main()
Console.WriteLine("Skriv tælleren");
string tællerInput = Console.ReadLine();
Console.WriteLine("Skriv nævneren");
string nævnerinput = Console.ReadLine();
double tæller = Convert.ToDouble(tællerInput);
double nævner = Convert.ToDouble(nævnerinput);
double procent = (tæller/nævner)*100;
Console.WriteLine("Resultat: " + procent + "%");
Console.WriteLine("Indtast venligst et gyldigt tal!");