Q. Write the output of the following:
Code:a=10
while a>5:
if a%7==0:
print(a**2,end='@')
else:
print(a-1,end='@')
a=a-3
β
Correct Answer: (B)
9@49@
a=10
while a>5:
if a%7==0:
print(a**2,end='@')
else:
print(a-1,end='@')
a=a-3
You must be Logged in to update hint/solution