Answers for "how to loop while"

4

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
Posted by: Guest on November-29-2021
0

Example of a Do..While Loop

public class Test {

   public static void main(String args[]) {
      int x = 10;

      do {
         System.out.print("value of x : " + x );
         x++;
         System.out.print("n");
      }while( x < 20 );
   }
}
Posted by: Guest on August-31-2021

Python Answers by Framework

Browse Popular Code Answers by Language