Java Program to Display Factors of a Number Naim 11:17 public class Factors { public static void main(String[] args) { int number = 60; System.out.print("Factors of " + number + " are: "); for(int i = 1; i <= number; ++i) { if (number % i == 0) { System.out.print(i + " "); } } }} Learn More : Share this Share on FacebookTweet on TwitterPlus on Google+
If the answers is incorrect or not given, you can answer the above question in the comment box. If the answers is incorrect or not given, you can answer the above question in the comment box.