Answers for "scanf syntax"

C
0

scanf()

#include <stdio.h>
int main() {
   // using scanf() 
   int user_input;
   
   printf("Please enter a number: ");
   scanf("%d", &user_input);
   printf("You entered: %d", user_input);

   return 0;
}
Posted by: Guest on October-21-2021

Code answers related to "C"

Browse Popular Code Answers by Language