Question
Perform this in C++ Declare the following int variables: intA intB intC Declare the following double variables: doubleA doubleB doubleC Declare the following constant of
Perform this in C++
Declare the following int variables:
intA
intB
intC
Declare the following double variables:
doubleA
doubleB
doubleC
Declare the following constant of type double and assign the value of 11.11 to it:
CON_ONE
Assign 2 to intA, 3 to intB, assign the sum of intA and intB to intC (through an addition formula).
Assign 2.1 to doubleA, 3.5 to doubleB, assign the sum of doubleA and doubleB and CON_ONE to doubleC (through an addition formula).
Print the name of each variable, along with their value on a separate line (view included exe).
Include a pause at the end.
Use the attached exe to determine spacing and how your display should look.
Please make the command prompt look exactly like the picture above. Thanks!
intA - 2 intB = 3 intc = 5 doubleA 2.1 doubleB = 3.5 doubleC = 16.71 CON_ONE = 11.11 Press any key to continueStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started