Question: Create a Code Blocks project named VariableValues. 1. Declare four variables: an integer named int Val1 , a float named float Val2 , a double

Create a Code Blocks project named VariableValues.

1. Declare four variables: an integer named int Val1, a float named float Val2, a double named double Val3, and a short named short Val4. 2. Ask the user to input all four values. For instance, look at the following program run capture: Please enter an integer value: 24 Please enter a float value: 17.77 Please enter a double value: 12345.67 Please enter a short value: 12 3. Once the user has entered all four values, output the values that the user entered as follows: The integer value is 24 The float value is 17.77 The double value is 12345.67 The short value is 12

Please note that these are just sample values. You will need to let the user type in whatever value they choose.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!