// Gets an int from user using scanf #include int main(void) { int x; printf("x: "); scanf("%i", &x); printf("x: %i\n", x); }