C Program to Print an Integer (Entered by the User)

Program to print an Integer



#include <stdio.h>

int main()
{
    int number;

    // printf() dislpays the formatted output 
    printf("Enter an integer: ");  
    
    // scanf() reads the formatted input and stores them
    scanf("%d", &number);  
    
    // printf() displays the formatted output
    printf("You entered: %d", number);
    return 0;
}

OutPut

Enter a integer: 25
You entered: 25

For Technical Related Posts Please Visit http://codetherush.in

Comments

Popular posts from this blog

C Program to Check Whether a Character is Vowel or Consonant

C Program to Find the Largest Number Among Three Numbers