Cody

Problem 44482. Calculate the CIRCUMFERENCE of circle.

Solution 1426711

Submitted on 28 Jan 2018 by Jihye Sofia Seo
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
l = 1; circumference_correct = l * pi * 2; assert(isequal(radius(l),circumference_correct))

2   Pass
l = 2; circumference_correct = 2 * pi * 2; assert(isequal(radius(l),circumference_correct))

3   Pass
l = 3; circumference_correct = 3 * pi * 2; assert(isequal(radius(l),circumference_correct))

Suggested Problems

Community Treasure Hunt

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

Start Hunting!