-
2 Comments
Muhammad Usmanon 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 Degirmencion 13 Jun 2020
function b = area_square(a)
b = a^2;
end
Suggested Problems
16294 Solvers
404 Solvers
Switch matrix to a column vector
297 Solvers
440 Solvers
解决617
More from this Author9
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!