top of page


GCD Calculator


2 Medium

7 Functions and Procedures


Implement a function that calculates the greatest common divisor (GCD) of two numbers.

- Input: Two numbers
- Processing: Calculate the GCD using the Euclidean algorithm
- Output: Return the GCD.

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