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
What is the next step in Conway's Life?
640 Solvers
831 Solvers
Create a two dimensional zero matrix
355 Solvers
Rounding off numbers to n decimals
1055 Solvers
618 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!