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
Find state names that start with the letter N
642 Solvers
Set the array elements whose value is 13 to 0
999 Solvers
245 Solvers
449 Solvers
242 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!