scanf integer

C
int integer;
scanf("%d", &integer);
Source

Also in C: