while loop
h=0
m=7
while a<7:
for m in range(7):
h+=1
m-=1
print(a,b)
if m==1 or h==1:
break
while loop
h=0
m=7
while a<7:
for m in range(7):
h+=1
m-=1
print(a,b)
if m==1 or h==1:
break
Do..While Loop
A do...while loop is similar to a while loop, except that a do...while loop is guaranteed to execute at least one time.
Syntax :
do {
// Statements
}while(Boolean_expression);
Notice that the Boolean expression appears at the end of the loop, so the statements in the loop execute once before the Boolean is tested.
If the Boolean expression is true, the control jumps back up to do statement, and the statements in the loop execute again. This process repeats until the Boolean expression is false.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us