Question: What am I doing wrong with the perfect code? I finished the code, and compile, but I can not get the factoring answer that from

What am I doing wrong with the perfect code?

I finished the code, and compile, but I can not get the factoring answer that from the code as the example.

The question is is how to fix it or is I need to add more into the code to reach the answer.

This is my code import java.util.Scanner; public class Perfect { public static void main (String args[]) { Scanner i = new Scanner(System.in); int numbers; int perfect; do { System.out.print("How many numbers would you like to test?"); numbers=i.nextInt(); } while (numbers <1); for (int count = 0; count0; y--) { total = x%y; if (total ==0) System.out.printf(" %d ",y); } } }

This is is the output of my code

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!