function maximus (a,b,c)
{
if ( (a>=b) && (a>=c))
{
result = a;
}
else if (b>=c)
{
result = b;
}
else
{
result = c;
}
return result
}
The function runs once with literal values, and once with user input values. But it doesn't behave like you'd expect. See if you can figure out what's going on.
No comments:
Post a Comment