Computer Science, asked by baseball9775, 11 months ago

Write a program in java to print all the factors of 20

Answers

Answered by 2003varunp
0

Here's just the logic.

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

{

if (i% 20==0)

System.out.println(i);

}

Similar questions