Home / EG Comp Lab / C Language / Read Number and Display it

Read Number and Display it

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

About EngineersGallery

Check Also

Independent Directed Acyclic Graphs for Resilient Multipath Routing

ABSTRACT: In order to achieve resilient multipath routing, we introduce the concept of independent directed …

Leave a Reply

Be the First to Comment!

Notify of
wpDiscuz