Question: For this task, you are to write a program that prints all the positive factors of a number and then prints the summation of all

For this task, you are to write a program that prints all the positive factors of a number and then prints the summation of all even and odd factors, separately.
You program should first ask the user to input a positive integer.
Your task is to:
Print all the positive factors of that integer
Print the summation of all even factors, i.e., factors that are even numbers. If a number does not have any even factors, the summation should be zero.
Print the summation of all odd factors, i.e., factors that are odd numbers.
Factors of an number: x is considered a positive factor of y , if 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!