Computer Science, asked by shiva473778, 6 months ago

Write a function factor (int) which takes n as a parameter,print and count the factors of N

Answers

Answered by suganthan07
0

Answer:

Input: 10 12 14

Output: 4 6 4

Explanation: There are 4 factors of 10 (1, 2,

5, 10) and 6 of 12 and 4 of 14.

Input: 100 1000 10000

Output: 9 16 25

Explanation: There are 9 factors of 100 and

16 of 1000 and 25 of 10000.

Explanation:

Given an array of integers. We are required to write a program to print the number of factors of every element of the given array.

Similar questions