Cody

Problem 44473. Let's make puddings !

Solution 3799188

Submitted on 23 Nov 2020
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 = 3; y = 300; z = 300; C = 2; assert(isequal(Egg_Milk_Sugar(x,y,z),C))

each = 3 2 20 Puddings = 2

2   Pass
x = 0; y = 999; z = 999; C = 0; assert(isequal(Egg_Milk_Sugar(x,y,z),C))

each = 0 7 67 Puddings = 0

3   Fail
x = 12; y = 1000; z = 100; C = 6; assert(isequal(Egg_Milk_Sugar(x,y,z),C))

each = 12 7 7 Puddings = 7

Assertion failed.

Suggested Problems

More from this Author9

Community Treasure Hunt

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

Start Hunting!