top of page

PROGRAMMING CHALLENGES

Exact Division Checker

Difficulty:

2 Medium

1.3 Arithmetic and Random

Topic:

Write a program that asks the user for two numbers and checks whether they are exactly divisible. If not, return the remainder. If a 0 is entered, display an error message.

Use the modulus operator % to check divisibility and handle zero with a conditional statement.

Need help with your programming skills?

If you need more help than just independent practise, then we're here for you. Book a 1:1 with us and we will be able to guide you to becoming a proficient programmer who can tackle any of the challenges an exam board can throw at you.

bottom of page