Created
May 19, 2017 06:38
-
-
Save disrae/c2d010796b309899f3e541d6c312aee3 to your computer and use it in GitHub Desktop.
pset 1 do while loop for user input
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int n; | |
do | |
// get height of pyramid | |
{ | |
printf("Height: "); | |
n = get_int(); | |
} | |
while (n >= 0 && n <= 23); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment