C Program to Print a Integer Entered by a User

Source Code


#include <stdio.h>
int main()
{
int num;
printf
("Enter a integer: ");
scanf
("%d",&num); /* Storing a integer entered by user in variable num */
printf
("You entered: %d",num);
return 0;
}
Output
Enter a integer: 25
You entered: 25

0 comments:

Post a Comment

My Instagram