Question: HW CH 32 - Type Casting. Combined Operators, Formatting Output/ 2. Question 2 - Combined Assignment Operators sowed This is a silly program to help
HW CH 32 - Type Casting. Combined Operators, Formatting Output/ 2. Question 2 - Combined Assignment Operators sowed This is a silly program to help you practice with combined assignment operators, such as -- Use ONLY these types of operators as you manipulate the user Output Ernet a lucky number must be whole number) and I will manipulate it using my number lassume user inputs 71 Your lucky number - 10 equals 17 Now I will multiply the previous result by 10, which equals 170 Next subtract the previous result by 10, which equals 160 Lastly, I divide the previous result by 10, which equals 16 Hirits and Notes 11 This is the last time I will give the hint that you need a constant should be obvious by now. 2. You must combine the processing and Output areas otherwise, you would need way too many variables and you would ruin the purpose of this exercise
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
