what is the problem with my function ?

function [area , cr ]= circle(r) area = pi* (r^2) ; cr = pi * r * 2 ;

 Accepted Answer

Bish Erbas
Bish Erbas on 27 Sep 2018
Edited: Bish Erbas on 27 Sep 2018
Formatting.
function [area, cr] = circle(r)
area = pi*(r^2);
cr = pi*r*2;
end

1 Comment

there is a problem with the area that i can't determine

Sign in to comment.

More Answers (0)

Categories

Tags

Community Treasure Hunt

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

Start Hunting!