ivr@nout:/tmp$ gcc -Wall testscan.c
ivr@nout:/tmp$
ivr@nout:/tmp$ ./a.out
545454
1
ivr@nout:/tmp$ cat testscan.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main()
{
int n;
n = scanf("%d", &n);
printf("%d\n", n);
return 0;
}
ivr@nout:/tmp$