yay
good
it's good
area of square is s*s
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
function b = area_square(a)
b = a^2;
end
Lovely code!
y
Very simple
895 Solvers
Create an n-by-n null matrix and fill with ones certain positions
270 Solvers
Sum of odd numbers in a matrix
311 Solvers
Back to basics - mean of corner elements of a matrix
297 Solvers
309 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!