Computer Science, asked by arjun8597, 7 months ago

Write a program that reads two integers a and b and returns greater of ab

and ba values. program coding in java​

Answers

Answered by rakeshaade380
1

Answer:

If ( a = b ) then all the numbers greater than a are the answer ... CPP program to find x such that a % x is equal.

Answered by jatingoyal3263
4

here is logic the c++. I believe if you know java then you can convert it into java as i have written logic in c++

int greater(int a, int b)

{

if (a > b)

return a;

else

return b;

}

Similar questions