Cody

# Problem 44089. Percentage profit:3

Solution 1149085

Submitted on 29 Mar 2017 by H M Dipu Kabir
• Size: 12
• This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
x = 50; rt=40; r1=20; y_correct = 60; assert(isequal(your_fcn_name(x,r1,rt),y_correct))

ans = []

2   Pass
x = 20; rt=40; r1=20; y_correct = 45; assert(isequal(your_fcn_name(x,r1,rt),y_correct))

ans = []

3   Pass
x = 60; rt=40; r1=20; y_correct = 70; assert(isequal(your_fcn_name(x,r1,rt),y_correct))

ans = []

4   Pass
x = 60; rt=80; r1=40; y_correct = 140; assert(isequal(your_fcn_name(x,r1,rt),y_correct))

ans = []

5   Pass
x = 60; rt=40; r1=40; y_correct = 40; assert(isequal(your_fcn_name(x,r1,rt),y_correct))

ans = []

6   Pass
x = 20; rt=20; r1=40; y_correct = 15; assert(isequal(your_fcn_name(x,r1,rt),y_correct))

ans = []

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!