How To Print An Integer In C
Introduction
- Printing an number or an integer in C programming is very simple and easy. Here I'm going to explain how to print an integer.
Software Requirement
Programming
- #include<stdio.h>
- #include<conio.h>
- int main()
- {
- int a;
- printf("Enter an integer\n");
- scanf("%d",&a);
- printf("\n Enter an integer that you have entered %d",a);
- return 0;
- }
Explanation
- In the above program, I wrote the code explaining how the number is printed as an integer.
![programming]()
Output
![Output]()