When formulate the code for this stating c nm1 it is not


Question:

Sample input n=4,m=2.

Samle Output is 7

Explanation 4+2+1 ie for 4 wrappers we get one chocolate so 4+1 and he has 2 more chocolates so 7 in total.

When formulate the code for this stating c = n+m+1 it is not satisfying all the test cases.

Suggest an alternative code.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: When formulate the code for this stating c nm1 it is not
Reference No:- TGS02912759

Expected delivery within 24 Hours