Computer Science, asked by Faika5302, 10 months ago

Void test (int n)
{
for(int i=1;i<=n; i++)
if (n%i==0)
Sopln(i);
}

Answers

Answered by dust
0

Answer:

Program will print factors of number input

Explanation:

void test (int n)

{

for(int i=1;i<=n; i++)

if (n%i==0)

sopln(i);

}

everything should be in small case though

Similar questions