Answers for "scanf("%*s")"

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

Browse Popular Code Answers by Language