Cody

# Problem 44474. I hope to lose weight healthily...

Solution 1996603

Submitted on 30 Oct 2019 by Nikolaos Nikolaou
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
before = 54.3; after = 46.5; y_correct = 4; assert(isequal(fcn(before,after),y_correct))

before = 52.2115 before = 50.2034 before = 48.2725 before = 46.4159 month = 4

2   Pass
before = 65.0; after = 50.0; y_correct = 7; assert(isequal(fcn(before,after),y_correct))

before = 62.5000 before = 60.0962 before = 57.7848 before = 55.5623 before = 53.4253 before = 51.3704 before = 49.3947 month = 7

3   Pass
before = 95.7; after = 55.5; y_correct = 14; assert(isequal(fcn(before,after),y_correct))

before = 92.0192 before = 88.4800 before = 85.0770 before = 81.8048 before = 78.6584 before = 75.6331 before = 72.7241 before = 69.9271 before = 67.2376 before = 64.6515 before = 62.1649 before = 59.7739 before = 57.4749 before = 55.2644 month = 14