Computer Science, asked by preetshergill9418, 1 year ago

java program to print all the factors of 20(loop)

Answers

Answered by surya2162
2

Class factors

{

public static void main(String args[])

{

for(int a=1;a<=20;a++)

{

if(20%a==0)

System.out.println(a);

}

}

Follow me if you want more answers for java

Similar questions