mcqs bucket

  • MCQs Bucket | Program Program to Print an Integer in C

    mcqsbucket

      Best guide for exams of all nature, Competitive exams and Interviews

Program to Print an Integer in C

	 
                                 		
#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;
}