獲取你自己的
網站
×
更改方向
更改主題,深色/淺色
前往 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; }
輸入一個數字並按回車鍵