yay
good
it's good
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
10132 Solvers
Find the maximum number of decimal places in a set of numbers
769 Solvers
276 Solvers
1223 Solvers
Find my daddy long leg (No 's')
667 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!