In this program, whole number entered by the client is put away in a variable. At that point, that variable is shown on the screen utilizing printf() work.
To comprehend this model, you ought to have the information of following C programming points:
C Programming Constants and Variables
C Programming Data Types
C Input Output (I/O)
Program to Print an Integer
/printf() dislpays the organized yield
printf("Enter a whole number: ");
/scanf() peruses the organized info and stores them
/printf() shows the arranged yield
printf("You entered: %d", number);
Enter a whole number: 25
You entered: 25
In this program, a whole number variable number is announced.
The printf() work shows Enter a whole number: on the screen. At that point, the scanf() work peruses a whole number information from the client and stores in factor number.
At long last, the esteem put away in the variable number is shown on the screen utilizing printf() work.
Look at these related precedents:
Include Number of Digits an Integer
Check Prime or Armstrong Number Using User-characterized Function
Show Factors of a Number
Check Whether a Number is Even or Odd
Check Whether a Number is Prime or Not
Discover Factorial of a Number
Check Whether a Number is Positive or Negative
Find Largest Number Using Dynamic Memory Allocation