C Program to Print Integer

C Programming Examples
C String Programs
C Loop Programs
C Function Programs
C Array Programs
C Integer Number Programs
C File I/O Programs

This C program is used to print given integer input by the user on the screen.

scanf function is used to obtain input and printf function is used to print the number on the screen.


int main()
    int number;
    printf("Please enter an integer: \n");
    scanf("%d", &number);
    printf("You enter the integer %d\n", number);
    return 0;
Program Output:


Scroll Back to Top