Skip to content

Instantly share code, notes, and snippets.

Created January 14, 2010 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/277436 to your computer and use it in GitHub Desktop.
Save anonymous/277436 to your computer and use it in GitHub Desktop.
#include <stdio.h>
/* just practicing my while loops */
main()
{
int age, legal;
age = 10;
legal = 21;
while (age != 21){
printf("%s %d %s", "you can not drink yet because you are", age, "years old\
\n");
age = age + 1;
}
printf("%s %d %s", "you can legally drink now because you are" ,age, "years o\
ld\n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment