Question: The initial value of num _ plums is read from input. Assign num _ apples with the sum of num _ plums and 2 .

The initial value of num_plums is read from input. Assign num_apples with the sum of num_plums and 2. Then, assign num_plums with the same value as num_apples. Lastly, assign total_fruit with the sum of num_plums and num_apples.
Click here for example
Ex: If the input is 7, then the output is:
9 plums
9 apples
18 total

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!