What is the output of the following?
i = 1
while True:
....if i%3 == 0:
...........break
....print(i)
Also explain why it is output.
Answers
Answered by
0
Answer:
Explanation:
first of all it gives error because u not given any data type for i and u not closed true with paranthesis in while
if u leave that point
the program will run
the output is 1
beacause,1%3 is not gives remainder as 0
so it directly goes to print statement and print 1
Similar questions
English,
5 months ago
Social Sciences,
5 months ago
History,
10 months ago
Political Science,
10 months ago
Business Studies,
1 year ago