C program to print an Integer
C program to print an Integer
//Program to print Integer #include <stdio.h> int main() { int number; // printf() dislpays the formatted output printf("Enter an integer: "); // scanf() reads the formatted input and stores them scanf("%d", &number); // printf() displays the formatted output printf("You entered: %d", number); return 0; }Sample Output:Enter a Integer : 20
You entered : 20
Comments
Post a Comment