Here is very basic or we can say a simple C Program to print an integer value is given, which takes the integer value as a input and returns it or print it on output screen. These basic programs are the building blocks of major ones so a beginner should know these concepts.
C program to print integer number
#include <stdio.h> int main() { int a; printf("Enter an integern"); scanf("%d", &a); printf("Integer that you have entered is %dn", a); return 0; }
Output :
Enter an integer
39
Integer that you have entered is 39