Program that takes single character and displays it on the screen
#include<iostream>
using namespace std;
int main()
{
char ch;
cout<<"Enter any character : ";
cin>>ch;
cout<<"The character you entered is : "<<ch<<endl;
return 0;
}
No comments:
Post a Comment