Cody

Solution 1663795

Submitted on 1 Nov 2018
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
N = 384; a_correct = 42; assert(isequal(age(N),a_correct))

2   Fail
N = 366; a_correct = 42; assert(isequal(age(N),a_correct))

Assertion failed.

3   Pass
N = 381; a_correct = 39 assert(isequal(age(N),a_correct))

a_correct = 39

4   Pass
N = 302; a_correct = 32; assert(isequal(age(N),a_correct))

5   Fail
N = 389; a_correct = 47; assert(isequal(age(N),a_correct))

Assertion failed.