Skip to content

Instantly share code, notes, and snippets.

@masarakki
Created March 26, 2013 08:17
Show Gist options
  • Save masarakki/5243837 to your computer and use it in GitHub Desktop.
Save masarakki/5243837 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main() {
int answer = 20;
char input[10];
while(1) {
printf("input: ");
scanf("%s", input);
if ( answer == atoi(input)) {
printf("good!");
return 0;
}
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment