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
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
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
Social Sciences,
3 months ago
Science,
3 months ago
Hindi,
7 months ago
Math,
7 months ago
Environmental Sciences,
10 months ago
Physics,
10 months ago