I want to write a function which finds greatest common divisor from all the elements of the natural number list. I am using gcd function function from library.Only problem occurs when all elements of the list are zero or when there is only one element present in the list and its value is zero.
Last updated: Oct 03 2023 at 19:01 UTC