This program will accept a character from the keyboard and display it along with hello.
#include<iostream.h>
#include<conio.h>
main()
{
clrscr();
char z;
cout << "enter any character";
cin >> z;
cout << "hello :";
cout << z <<endl;
getch();
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment