Question: The initial value of num _ chairs is read from input. Assign num _ tables with the same value as num _ chairs. Then, assign

The initial value of num_chairs is read from input. Assign num_tables with the same value as num_chairs. Then, assign num_chairs with the sum of num_tables and 2. Lastly, assign total_furniture with the sum of num_chairs and num_tables.
Click here for example
Ex: If the input is 6, then the output is:
8 chairs
6 tables
14 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!