Question: Create a program named factors.java. The program should display all of the factors for numbers between 1 and 100. Use the following specifications if your
Create a program named factors.java. The program should display all of the factors for numbers between 1 and 100. Use the following specifications if your solution. 1) Create a method printfactor(int n) that will display on a single line all of the factors or the variable n. 2) In the main method use a for loop to display call printfactor() for every number between 1 and 100. 3) In the comments at the end of your code describe the O() "Big-Oh" of the printfactor() method and the O() of the main method that calls it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
