Write a program to accept a number and display it.
/* Write a program to accept a number and display it */
#include <stdio.h>
#include <conio.h>
void main(void)
{
int
n;
printf("Enter the number : ");
scanf("%d",&n);
printf("The number you have entered is %d\n",n);
getch();
}
Comments
Post a Comment