Read Number and Display it

0
14

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


Leave a Reply

Be the First to Comment!

Notify of
wpDiscuz