Computer Science, asked by dblc3283, 1 year ago

void test1(intn)
{
for(int x=1; x<=n ; x++)
if(n%x==0)
System.out.println(x);
}
If 12is passed to n

Answers

Answered by sattwikdatta6
2

ANSWER

1

2

3

4

6

12

HOPE IT HELPS YOU

Note - The previous answer was wrong answered by @swayamicy.

Answered by anaypalclassx
0

Answer:

It is the answer of your qwestion.

I hope it is help you.

Attachments:
Similar questions