-
2 Comments
Muhammad Usman
on 26 Apr 2020
function b = area_square()
a = input('Enter the side of square:')
b = sprintf('Area of square is: %f',a*a)
end
What's wrong with it
Ayper Degirmenci
on 13 Jun 2020
function b = area_square(a)
b = a^2;
end
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!