Last active
August 29, 2015 14:06
-
-
Save DivinityArcane/84d076eb1443708d2009 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 <stdio.h> | |
#include <stdlib.h> | |
int main (int argc, char** argv) { | |
int num = 0; | |
char buf[12]; | |
puts("Enter a number: "); | |
fgets(buf, 12, stdin); | |
num = atoi(buf); | |
printf("The number you entered was: %i\n", num); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment