Cody

Problem 44283. Calories in a slice of pizza?

Solution 2847537

Submitted on 18 Aug 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
a = 60; c = 3000; assert(pizza(a,c)>450)

ans = logical 0 e = 3000

2   Fail
a = 30; c = 3000; assert(pizza(a,c)<260)

ans = logical 0 e = 3000

Assertion failed.

3   Pass
a = 15; c = 6000; assert(pizza(a,c)>240)

ans = logical 0 e = 6000

Suggested Problems

More from this Author100

Community Treasure Hunt

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

Start Hunting!