📅  最后修改于: 2022-03-11 14:52:21.159000             🧑  作者: Mango
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 + " ");
}