Java Program to Display Factors of a Number

In this program, you'll learn to display all factors of a given number using for loop in Java.

Example: Display Factors of a Number

When you run the program, the output will be:

Factors of 40 are : 1 2 4 5 8 10 20 40

Post a Comment

Thank you for vising

Previous Post Next Post