Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static double wrongInput(string s, bool isParsed){
- double value;
- while (!isParsed)
- {
- Console.Clear();
- Console.WriteLine("forkert indtastnig: Indtast y eller n");
- isParsed = double.TryParse(Console.ReadLine(), out value);
- }
- return value;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement