Problem 44283. Calories in a slice of pizza?

Solution 1249147

Submitted on 10 Aug 2017 by AMITAVA BISWAS
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)

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

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

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!