int f=1,p=2;
for(int i=6;i>0;i--)
{if(i%f==0) p*=i;
System.out.println(i);f++;} System.out.println(p);
Answers
Answered by
1
Explanation:
the first answer is 6 5 4 3 2 1
and the second one is 1
Similar questions