Skip to content

Instantly share code, notes, and snippets.

Avatar

Daniel Israel disrae

View GitHub Profile
@disrae
disrae / gist:c2d010796b309899f3e541d6c312aee3
Created May 19, 2017
pset 1 do while loop for user input
View gist:c2d010796b309899f3e541d6c312aee3
int n;
do
// get height of pyramid
{
printf("Height: ");
n = get_int();
}
while (n >= 0 && n <= 23);