📜  scanf() - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:07.740000             🧑  作者: Mango

代码示例1
#include 
int main() {
   // using scanf() 
   int user_input;
   
   printf("Please enter a number: ");
   scanf("%d", &user_input);
   printf("You entered: %d", user_input);

   return 0;
}