Skip to content

Instantly share code, notes, and snippets.

View disrae's full-sized avatar

Daniel Israel disrae

View GitHub Profile
@disrae
disrae / gist:c2d010796b309899f3e541d6c312aee3
Created May 19, 2017 06:38
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);