Question: What does this code fragment print? n = 2 while n 1 0 : n = 2 * * * n print ( n )

What does this code fragment print?
n=2
while n10 :
n=2***n
print (n)
print (n)
4,8,8,16
4,8,16,16
4816
4,8,16,32
 What does this code fragment print? n=2 while n10 : n=2***n

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!