While Loop Questions

Find these pieces in each of the following loops.
(a) initialize loop stopping variable
(b) test if stopping condition is met
(c) increment loop stopping variable
(d) steps to be repeated over and over

Question 1: Find the pieces of a loop.
int z = 1;
while (z < 6)
{ System.ont.println("Yippe");
  z++;
}

Question 2: Find the pieces of a loop.
String continue="N";
continue = IBIO.inputString("Do you wish to continue?");
while (continue.compareTo("Y")==0)
{ System.out.printlln("lalalala");
  continue=IBIO.inputString("Do you wish to continue?");
}
System.out.println("Goodbye");

Use a loop to do the following things.

3. Print your name out on the screen 12 times.
4. Get a number from the user, print it to the screen 20 times.
5. Print the numbers from 12 to 33 increasing by ones.
6. Count from 10 to 0 by twos.
7. Write a program that asks the user to input a starting value and a stopping values and then counts by ones from the start to the stopping value.
8. Print the seven times table (from 1 to 12) using a loop.