Skip to content

Instantly share code, notes, and snippets.

@disrae
Created May 19, 2017 06:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save disrae/c2d010796b309899f3e541d6c312aee3 to your computer and use it in GitHub Desktop.
Save disrae/c2d010796b309899f3e541d6c312aee3 to your computer and use it in GitHub Desktop.
pset 1 do while loop for user input
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