0

No overload method for readline takes 1 argument

I get this error when i try to run my code and i don't get why... Console.Write("Skriv in ditt mönsterdjup i millimeter: "); string inmatat = Console.ReadLine(); int djupMönster = int.Parse(inmatat); if (djupMönster < 1.6) { Console.WriteLine("Dina dÀck Àr olagliga!"); } else { Console.WriteLine("Du har " + (djupMönster - 1.5) + " mm kvar innan du mÄste byta dÀck!"); Console.WriteLine("Tryck pÄ enter för att stÀnga av!"); Console.ReadLine("");

3rd Dec 2016, 7:30 PM
Linus Eriksson
Linus Eriksson - avatar
1 Answer
+ 3
why are you passing an empty string into ReadLine method? edit last line to: Console.ReadLine();
3rd Dec 2016, 8:54 PM
HAL8999++;
HAL8999++; - avatar