Java Practice It || 4.7 evenOdd || if/ else statement, input, scanner

Опубликовано: 27 Июль 2026
на канале: Computer Engineering life
1,303
8

Problem:
https://practiceit.cs.washington.edu/...


Question:
Write Java code to read an integer from the user, then print even if that number is an even number or odd otherwise. You may assume that the user types a valid integer. The input/output should match the following example:

Type a number: 14
even