Read Number and Display it

0
1810

[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]



  

Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments