Write if else if statements to find the maximum of four random numbers which are stored in variables a, b, c and d. Then assign the maximum number to variable s. (Assume the variables have been declared and you do not know the value of variables.)

s=a;if(b>s) s=b;if(c>s) s=c;if(d>s) s=d;

Secure Information

Content will be erased after question is completed.

Enter the email address associated with your account, and we will email you a link to reset your password.

Forgot your password?

Sign Up