int g=0 , x=1;
while(x<=n)
{
if(n % x ==0)
g=g+x;
x++;
}
System.out.println(g); What will be the output when n =7
Answers
Answered by
0
Answer:
Please mark me as a brainlist
Explanation:
Please mark me as a brainlist
Similar questions