Kotlinlearncs.online LogoJava
Return to List

Solve: Print Parity Function

Created By: Justin Maier
/ Version: 2024.8.0

The "parity" of a number refers to its property of being even or odd.

Write a function named printParity with void return type that takes a single int argument and prints "Even" if it is even and "Odd" if it is odd.

Related Lessons

Stuck? You may find these lessons helpful: