Write a program to input 2 integers and print their common factors in descending order.
Answers
Answered by
1
Explanation:
Given two integer numbers, the task is to find count of all common divisors of given numbers?
Examples :
Input : a = 12, b = 24
Output: 6
// all common divisors are 1, 2, 3,
// 4, 6 and 12
Input : a = 3, b = 17
Output: 1
// all common divisors are 1
Input : a = 20, b = 36
Output: 3
// all common divisors are 1, 2, 4
Similar questions
Biology,
3 months ago
Computer Science,
3 months ago
Geography,
6 months ago
English,
6 months ago
English,
10 months ago