Q. Which of the following is correct output of this program?
Code:
1. a = 1 2. while True: 3. if a % 7 = = 0: 4. break 5. print(a) 6. a += 1
β
Correct Answer: (B)
1 2 3 4 5 6
1. a = 1 2. while True: 3. if a % 7 = = 0: 4. break 5. print(a) 6. a += 1
You must be Logged in to update hint/solution