In: Computer Science
Create a C++ program that consists of the following: In main create the following three variables: A char named theChar A double named theDouble An int named theInt Fill each of these variables with data taken as input from the keyboard using a single cin statement. Perform the following task on each variable: Increment theChar by one Decrement theDouble by two Square theInt This should be done on separate lines. Output the value of each variable to the screen on separate lines using cout statements. Your program should also output the name of the variable followed by a colon.
#include
#include
using namespace std;
int main()
{
//Declaring variables
char theChar;
double theDouble;
int theInt;
//Getting the input entered by the user
cout<<"Enter the inputs :";
cin>>theChar>>theDouble>>theInt;
//Performing operations
theChar+=1;
theDouble-=1;
theInt=pow(theInt,2);
//Displaying the output
cout<<"theChar :"< cout<<"theDouble :"< cout<<"theInt :"< return 0; } ___________________ Output: