Write the output s=5 while(s/2)>2 print(s)
Answers
Answered by
0
Answer:
Write the output s=5 while(s/2)>2 print(s)
Explanation:
please mark as brainalist
Answered by
0
- The format of a rudimentary while loop is shown below:
while <expr>:
while <expr>: <statement(s)>
while <expr>: <statement(s)><statement(s)> represents the block to be repeatedly executed, often referred to as the body of the loop. This is denoted with indentation, just as in an if statement.
>>> n = 5
>>> n = 5>>> while n > 0:
>>> n = 5>>> while n > 0:... n -= 1
print(n)
>>> n = 0
>>> n = 0>>> while n > 0:
>>> n = 0>>> while n > 0:... n -= 1
print(n)
Attachments:
Similar questions
English,
3 hours ago
Biology,
3 hours ago
Social Sciences,
3 hours ago
English,
5 hours ago
English,
5 hours ago
English,
8 months ago
Social Sciences,
8 months ago