Task 8 of 8 · 0 solved · 8 to go0%
You can read the problem, but answers are checked only for signed-in students. Sign in to answer →

Problem

2.1 Selection — capstone: larger, and even or odd

Read two whole numbers. Print the larger of them on the first line, then print even or odd for that larger number on the second line.

For the input 3 7 the program prints:

7
odd

If the two numbers are equal, that value is the larger one.

time 1000 ms memory 256 Mb
Solution
Attempts: 0 A hint guides you to the fix — it never writes the code for you.
✦
Ready to check

Press «Submit» to run your code against the task's test cases — that is what sets your score. «AI review» is an optional second opinion: it reads your code — logic and style, not just the output — and suggests the next step without handing over the answer. It never changes your score.

Next module →
Working…