Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Reverse Order Output for Java Do-While Loop

class DoWhile
{
    public static void main(String s[])
    {
        int n = 3;

        do
        {
            System.out.println("n = " + n);
            n--;
        } while ( n > 0 );

    }
}
Source by java.meritcampus.com #
 
PREVIOUS NEXT
Tagged: #Reverse #Order #Output #Java #Loop
ADD COMMENT
Topic
Name
3+8 =