+ 1
I don’t know how doing this program for me is difficult
given two numbers num1 and num2, find the common divisors
2 ответов
+ 1
Just check them one by one. Because it's common divisors you need to find, the range will be from 1 to the minimum of num1 and num2. Then loop this range and check whether both remainders are 0.
+ 1
Find minimum number out of two..
And check for every number from 1 to minimum number.. if it divisible by both num1 and num2 .. if so then print it..
Check out this..
hope it helps :)
https://code.sololearn.com/cGJwgIJTRCQ3/?ref=app