Computer Science, asked by atanupal196133, 5 months ago

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 imtiyazallam
2

Output would be:

1

2

3

4

6

12

Answered by anaypalclassx
0

Answer:

1

2

3

4

6

12

Explanation:

it is your anser

Similar questions