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

Find more on Numerical Integration and Differential Equations in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!