Created
January 14, 2010 19:49
-
-
Save anonymous/277436 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#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