Yasir's Blog
Pages
About Me
C Programs
Java Programs
ML
Contact Me
Sitemap
Privacy Policy
Home
»
C Programs
»
C program to print an Integer number on screen
Friday, 30 December 2016
C program to print an Integer number on screen
Program:
This program is saved as PrintIneger.c
#include
int main() { int a; printf("Enter an integer : "); scanf("%d",&a); //takes an integer from user printf("Integer that you have entered is %d",a); return 0; //return the value zero to the OS. }
Output:
Enter an integer : 78 Integer that you have entered is 78
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment