C Program To Print An Integer Entered By the User

C Program To Print An Integer Entered By the User

Code
// C program to print an integer entered by the user...

# include <stdio.h>
 int main (){
    int num;
    printf("Enter an integer:\n");
    scanf("%d",&num);
    printf("You entered:%d",num);
   return 0;
 }
Output
Enter an integer:
12
You entered:12

Post a Comment