DopplerEffect wrote:Hello everyone,
I've assigment that requries a function to be created to find gcd of four numbers, you may see below for details (Using the Euclid's algorithm) the function does not expect the negative integers and less than 4 numbers
any hints that you give may help
You haven't provided any code or provided any error messages, so the best I can do is make a couple of generic hints.
1. The gcd(-4, 12) is the same as gcd(4,12). Negative integers should be converted to positive integers.
2. How are you handling different number of inputs? Can you write a function that returns a tuple (or list) of the arguments, even if the number of arguments varies?