Question: Convert the following nested if statement to if/else if statement if (numBooks=1) numCoupons - 1: if (numBooks> 1) if (numBooks <5) numCoupons - 3;
Convert the following nested if statement to if/else if statement if (numBooks=1) numCoupons - 1: if (numBooks> 1) if (numBooks
Step by Step Solution
There are 3 Steps involved in it
The nested if statement can be converted to an ifelse if statement as follows cpp if numBooks 1 n... View full answer
Get step-by-step solutions from verified subject matter experts
