Code Snippets C

#include
#include
int main ()
{
int i;
char s[256];
printf ("Enter a number: ");
gets ( s );
i = atoi ( s );
printf ("i = %d, its double = %d", i, i * 2 );
return 0;
}