//Include the header
#include <stdio.h>
//My main function
int main() {
//Print "Hello, World!" to the screen
printf("Hello, World!");
//Get keyboard input
getchar();
printf("Hello, World!");
getchar();
int x = 0;
printf("Please enter a number: ");
scanf("%d", &x);
printf("You entered %d.\n\n", x);
printf("Pres enter to continue...", x);
getchar();
getchar();
printf("Please enter your name: ");
scanf("%d", &x);
printf("You entered %d.\n", x);
printf("Pres enter to continue...");
getchar();
getchar();
printf("Pres enter to continue...");
getchar();
getchar();
}
My problem is when i input "your name "i only got some numbers up.
What i do wrong?
