获取您的
自己的
网站
×
更改方向
更改主题,深色/浅色
前往 Spaces
#include <stdio.h> 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; }
输入一个数字并按回车键