Counting backwards with for loop - Java Language Basics

Java examples for Language Basics:for

Description

Counting backwards with for loop

Demo Code

public class CountDown
{
    public static void main(String[] args)
    {//from  w w  w.j  a  v a  2 s.  c  o  m
         for (int count = 10; count >= 1; count--)
         {
                   System.out.println(count);
         }
    }
}

Related Tutorials