I know C++, but I'm trying to learn C. Anyways, what am I doing wrong here. If I delete the line with 'scanf', it will compile so obviously I'm doing something wrong there. Anyways...
#include <stdio.h>
int main() {
int x;
printf("enter a number\n");
scanf("%d", &x);
printf("Your number is: %d\n", x);
return 0;
}