Question: Write a program to factor a user supplied integer value. The user will use trial and error to find the factors of the input integer

 Write a program to factor a user supplied integer value. The
user will use trial and error to find the factors of the

Write a program to factor a user supplied integer value. The user will use trial and error to find the factors of the input integer value. Note that Quotient Dividend / Divisor Example output: Enter the dividend, a number to factor: 935 Enter a divisor: 5 5 is a factor of 935 187 is the new dividend. Enter a divisor: 7 7 is not a factor, try again for 187 Enter a divisor: 11 11 is a factor of 935 17 is the new dividend. Enter a divisor: 13 13 is not a factor, try again for 17. Enter a divisor: 17 17 is a factor of 935 1 is the new dividend. Exit program. Note that 935 = 5 * 1 1 * 17, and the program finishes when the dividend is reduced to 1. Starter code is provided on the next page

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 Databases Questions!