Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace C15_Ex01_3
- {
- class AdvancedAstrixClock
- {
- public static void RunAdvancedAstrixClock()
- {//!!!(1) - maybe implement input as a separate method ?
- int heightOfClock = 0;
- while(heightOfClock == 0)
- {
- string stringHeightFromInput = System.Console.ReadLine();
- bool goodInput = int.TryParse(stringHeightFromInput, out heightOfClock);
- if(!goodInput || heightOfClock < 0)
- {
- heightOfClock = 0;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement