Write a program in java to print all the factors of 20
Answers
Answered by
0
Here's just the logic.
for (int i = 1; i<=20 ; i++)
{
if (i% 20==0)
System.out.println(i);
}
Similar questions