Example: even or odd

Write a program that checks whether an integer is even or odd.

We can solve the problem with one if-else construction and the operator %, which returns a remainder by dividing from two numbers.

Testing in the Judge System

Test your solution from the example here: https://judge.softuni.bg/Contests/Practice/Index/506#2.

results matching ""

    No results matching ""