Created
November 12, 2012 18:14
-
-
Save reagent/4060936 to your computer and use it in GitHub Desktop.
This file contains 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 <stdlib.h> | |
#include <stdio.h> | |
int | |
main(int argc, char *argv[]) | |
{ | |
if (argc <= 1) { | |
printf("Error: You must supply a value\n"); | |
return 1; | |
} | |
int value = atoi(argv[1]); | |
loop_body: | |
printf("value is %d.\n", value); | |
if (--value >= 0) { | |
goto loop_body; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment