Revisions
-
chee revised this gist
Jan 14, 2010 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ main() int age, legal; age = 10; // Britishising. legal = 18; while (age < legal){ -
chee revised this gist
Jan 14, 2010 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -6,6 +6,7 @@ main() int age, legal; age = 10; # Britishising. legal = 18; while (age < legal){ -
chee revised this gist
Jan 14, 2010 . 1 changed file with 11 additions and 8 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,18 +1,21 @@ #include <stdio.h> /* just forking yr while loops */ main() { int age, legal; age = 10; legal = 18; while (age < legal){ printf("You cannot drink yet because you are only %i years old\n", age); sleep(1); age++; } printf("Now you can drink, because you're %i years old.\n\n", age); sleep(1); printf("Not that you weren't drinking already.\n\n" sleep(2); printf("\t\tYou waster.\n"); } -
There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ #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"); }