Find the output:-
void test1(int n)
{
for(int x=1;x<=n;x++)
if(n%x==0)
System.out.println(x);
}
If 12 is passed to n
Answers
Answered by
2
Output would be:
1
2
3
4
6
12
Answered by
0
Answer:
1
2
3
4
6
12
Explanation:
it is your anser
Similar questions