Structure of Problem Requirements
In this simple Program User press a Key from the Keyboard and the Program give him that key as output . Just Declare a Data Type Char and Print that after taking the input from the User.
Source Code
#include<iostream>
using namespace std;
int main ()
{
char a;
cout<<" Press a Key ";
cin>>a;
cout<<" You Press " <<a;
return 0;
}
Output of the Program
Tell the Character by User |
Asad Niazi is Software Engineer , Programmer, Web Developers and a young mentor of Tech Solutions Desk and Blogging Solutions . Asad Love to writes about Technology, Programming, Blogging and make money online.
0 comments:
Post a Comment