Cody

Problem 42255. Volume of Cylinder

Solution 3469628

Submitted on 29 Oct 2020 at 14:43 by Akrem Hadji
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 = 1; y = 1; z_correct = 6.28; assert(isequal(Circumference(x,y),z_correct))

z = 6.2800

2   Pass
x=2 y=4 z_correct=50.272 assert(isequal(Circumference(x,y),z_correct))

x = 2 y = 4 z_correct = 50.2720 z = 50.2720

3   Pass
x=0 y=0 z_correct=0 assert(isequal(Circumference(x,y),z_correct))

x = 0 y = 0 z_correct = 0 z = 0

4   Pass
x=0 y=1 z_correct=0 assert(isequal(Circumference(x,y),z_correct))

x = 0 y = 1 z_correct = 0 z = 0

Suggested Problems

More from this Author8

Community Treasure Hunt

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

Start Hunting!