C Program to Print a number or integer

 

C Program to Print a number or integer

#include <stdio.h>

#include <conio.h>

void main()

{  

   int n;

 printf("Enter a number or integer: "); 

 scanf("%d", &n);

 printf("You entered number or integer is: %d", n);

       getch();

}

 

Output:

Enter a number or integer: 20

You entered number or integer: 20 

Comments

Popular posts from this blog

C Program to print swap number using third variables

C Program to open and write to a text file using fprintf.