Sunday, 14 December 2014

C PROGRAM TO DISPLAY A SINGLE CHARACTER ENTERED BY THE USER ON THE SCREEN

Write a program to display what ever you want:

#include<stdio.h>
#include<conio.h>
int main()
{
char a;
clrscr();
printf("Enter any single character that you want to print on screen\n");
a= getchar();
putchar(a);
getch();
return(0);
}

OUTPUT:
Enter any single character that you want to print on screen
H

H

No comments:

Post a Comment