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
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