Find the output n=1 a=0 while n<= 10: a+=n*n n=n+2 print ("output is", a)
Answers
Answered by
2
output is 165, if the print statement is outside the loop.
output is 1
output is 10
output is 35
output is 84
output is 165
If the print statement is inside the loop.
Similar questions