C - Input and Output
Identify the problem in this code:
When run, the prompt does not appear before input is requested. Why?
#include <stdio.h>
int main() {
int x;
printf("Enter a number: ");
scanf("%d", &x);
printf("You entered %d", x);
return 0;
}When run, the prompt does not appear before input is requested. Why?
