Computer Science, asked by artisttanu7, 5 months ago

Q20) what is the output of the
following: if a= 2,b=10,c= 4;
class A. { public static int
maximum (int a, int b, int c) {
int max=a; if(max<b) max=b;
if(max<c) max=c; return max; }​

Answers

Answered by karthikeyanrao
0

Answer:

output is 10

Explanation:

first the max will be 2

and after the if condition the max changes to 10 because the if statement is true .

there will be no changes in others

Similar questions