Question: . You may assume that the C++ variables named answer, speed, and year have all been declared as integer (int) variables. You may also assume

. You may assume that the C++ variables named answer, speed, and year have all been declared as integer (int) variables. You may also assume that the variable named year has been assigned an integer (int) value. Compose a complete C++ if statement that assigns the value 42 to the variable named answer and assigns the value 48 to the variable named speed if the value of the variable named year is greater than 2424.

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!