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