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
Math,
6 months ago
English,
6 months ago
Political Science,
11 months ago
Math,
11 months ago
Biology,
1 year ago