c - Combine an if statement with do while -
I am finishing a small game where the first task is to do what This works when you write a value that is not in accordance with the statement, you have to type a new one, though I would like to include a statement in a way: < / P> but it can not work Any clues on doing wrong? Invert type: Input & gt; 0 or
Input & lt; 23
integer height; Do {printf ("height:"); Height = getInt (); } While ((height & lt; = 1) || (height> 23;));
if (the situation is not true) {printf ("fill a number between 1-23!"}}
Inti height = -1; // DEFAULT VALUE me (when height> 23)) ((height> 23)) // Enter a number between about acceptable class play in print value message ( "1 -23"); // Read an altitude = GetInt (); Printf ("Height:"); }
Comments
Post a Comment