public static void main( String[] args )
    {
        int loopLimit = 10;
        int count = 0;

        while ( count < loopLimit )
        {
            System.out.println( count );
            count = count + 1;// increase the count by one
        }
    }