1.

Find the output of the following programdef calcresult () :i = 9while i> 1 :if (i % 2 == 0):x = i%2i = i-1else :i = i-2x = iprint x**2

Answer»

The output is:

49

25

9

1



Discussion

No Comment Found

Related InterviewSolutions