CBSE BOARD XII, asked by Dynamic6705, 12 hours ago

c program to help shop owner with his product storage, so that all products with an id that as prime number can be stored together.followed by the product with an id that is a non prime number

Answers

Answered by deveshwarans06
0

Answer:

Input: num = 10

Output: Product is 10

Explanation:

Here, the input number is 10 having only 2 prime factors and they are 5 and 2.

And hence their product is 10.

Input : num = 25

Output: Product is 5

Explanation:

Here, for the input to be 25 we have only one unique prime factor i.e 5.

And hence the required product is 5.

Similar questions