/*
   Chapter 7:   Grade Point Average
   Programmer:  Brad Shedd
   Date:        August 24, 2006
   Filename:    DoWhile.java
   Purpose:   Implements a JOptionPane input box within a while        loop to allow the user to enter the grades using a - 1 as a sentinel value.
*/
public class dowhile
{
public static void main (String[] args)
{
   
int a = 5;
   
do
    {
        System.out.println(
"The number is " + a);
        a += 5;
    }
while (a < 101);
}
}

Homepage