Computer Science, asked by mariyamahmedmufti, 7 months ago

WAP to input two numbers and print the number which is greater than the average of both​

Answers

Answered by innocentLadka
0

Answer:

class program

[

public static void main (String args[ ])

[

int a, b, average;

average = (a+b)/2;

if(a>average)

S.O.Pln( a );

else

S.O.Pln( b);

]

]

Similar questions