write a program using a for loop to input a positive integer,if it is an even number then find the sum of its factors otherwise find the factorial of the number...
Answers
Answered by
1
Answer:
please mark me as the Brainliest
Explanation:
The factorial of a number is the product of all the integers from 1 to that number.
For example, the factorial of 6 is 1*2*3*4*5*6 = 720. Factorial is not defined for negative numbers, and the factorial of zero is one, 0! = 1.
Similar questions