Computer Science, asked by devpxs, 6 months ago

Write a program to input 2 integers and print their common factors in descending order.

Answers

Answered by kumarirashmi1098
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