The variables are:
a=20b=10c=30
How do i find the max without using built in functions.
I believe it is
if a>b && a>c disp(a)elseif b>a && b>c disp(b)else disp(c)end
compare 3 varibles with if statementsif statementMATLAB
a=20b=10c=30
if a>b && a>c disp(a)elseif b>a && b>c disp(b)else disp(c)end
Best Answer