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     
  • Turbo C++ OR C 
Programming 
  1. #include<stdio.h>  
  2. #include<conio.h>  
  3. int main()  
  4. {  
  5. int a;  
  6. printf("Enter an integer\n");  
  7. scanf("%d",&a);  
  8. printf("\n Enter an integer that you have entered %d",a);  
  9. return 0;  
  10. }  
Explanation
  •  In the above program, I wrote the code explaining how the number is printed as an integer.

     programming
Output

Output
Ebook Download
View all
Learn
View all