Question: please write a c++ code that can work on the visual studio. someone one did this for me before but the code doesn't work on

please write a c++ code that can work on the visual studio.please write a c++ code that can work on the visual studio. someone one did this for me before but the code doesn't work on visual studio that's why i repost again.

This exercise queries the user for an integer, x, greater than 1, and returns the product of prime factors of x. Here is a sample running of the program: Please enter an integer greater than 1 (or any number less than 2 to quit): 100 100 = 2 x 2 x 5 x 5 Please enter an integer greater than 1 (or any number less than 2 to quit): 252 252 = 2 x 2 x 3 x 3 x 7 Please enter an integer greater than 1 (or any number less than 2 to quit): 17 17 = 17 Please enter an integer greater than 1 (or any number less than 2 to quit): 1 Note that your program would need an outer loop to query for an integer until a number less than 2 is entered, which the program would then exit. To check if a is divisible by b, use the modulo operator (%). For example, for any integers a and b greater than 0, a % b == 0 if a divides b evenly. That is, a divided b does not yield any remainder

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!