Cody

Problem 44283. Calories in a slice of pizza?

Solution 2197985

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

Assertion failed.

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

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

Assertion failed.

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!