Read Number and Display it

0
2037

[message_box title=”Program ” color=”red”]

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  */

/*Write a Program to read number and display it*/

/*Written by Utpal Chaudhary*/

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  */

#include <stdio.h>
void main()
{
int n;

clrscr()        /* clrscr() use for clear screen */

printf(“Enter a Number:”);

scanf(“%d”,&n);

getch();
}

[/message_box]

 

[message_box title=”Output ” color=”red”]

Enter a Number:5

 

[/message_box]