Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
int main() { // Create an integer variable that will store the number we get from the user int myNum; // Ask the user to type a number printf("Type a number and press enter: \n"); // Get and save the number the user types scanf("%d", &myNum); // Print the number the user typed printf("Your number is: %d", myNum); return 0; }
Type a number and press enter: