WAP that will take an input and display it on the screen.
#include <stdio.h>
#include <conio.h>
void main()
{
int a; //Declaring Variable.
printf("enter any number for an input\n"); //Printing Message on Screen
scanf("%d",&a); //Getting Input.
printf(“\n the entered number is %d”,a); //Printing Message on Screen
getch(); //Getting a chracter or waiting for key press.
}
No comments:
Post a Comment