It’s a C program that input integer value from the user, and print on the screen.
To understand this program, it’s better you should know the following topics:
Program (1): to print integer which is entered by the user.
#include <stdio.h> #include <conio.h> void main() { // variable declaration int num; // use printf() to display message printf("Enter an integer number: ") ; // use scanf() to store integer in num variable scanf("%d", &num) ; printf("The entered number is %d", num); // use getch() to hold output screen getch(); }
Output (1)
Enter an integer number: 23 The entered number is 23