java program to print all the factors of 20(loop)
Answers
Answered by
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