B. Explain the working of the while loop with a flowchart.
C. What happens if we create a loop that never ends?
D. What is meant by nested loops?
E. Find the bugs in the following programs.
a. count = 0
s=0
while count
s += count
count=count+1
print(s)
b. count=0
for i in range(10,0,-1)
print(i)
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here