Computer Science, asked by ragavendhraragavendh, 5 hours ago

Write the output s=5 while(s/2)>2 print(s)​

Answers

Answered by Deletaccount
0

Answer:

Write the output s=5 while(s/2)>2 print(s)

Explanation:

please mark as brainalist

Answered by AbhinavRocks10
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