Scanner scanner = new Scanner(System.in);
int numberA = scanner.nextInt();
int numberB = scanner.nextInt();
int main = numberA > numberB ? numberA :numberB;
System.out.println(main);
Solution
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Anonymous #11330091
15 April 2023, 22:46
Thank you!! Couldn't figure that one out with only the information from the lesson.
0