Using 3 different for loops, write a java program to give the following output. The

program requires no user input. Save the program as ThreeLoops.java

Countdown...

10

9

8

7

6

5

4

3

2

1

Blast Off!

Even Counting

2 4 6 8 10 12 14 16 18 20

Finished

Odd Counting

15 13 11 9 7 5 3 1

Finished

Recommended Answers

All 3 Replies

You just copy/pasted your assignment without even a moment taken to explain what help you need. That's highly disrespectful to the many people who give their time to help others here.

There are lots of people here who will freely give their time to help you become the best Java programmer you can be. There's nobody here who is interested in helping you cheat or doing your homework for you.

DaniWeb Member Rules (which you agreed to when you signed up) include:
"Do provide evidence of having done some work yourself if posting questions from school or work assignments"
http://www.daniweb.com/community/rules

Post what you have done so far and someone will help you from there.

commented: Exactly correct. +6

Hi ,

Please find the below code.

package arrayexample1;
public class ThreadLoops {
    @SuppressWarnings("empty-statement")
    public static void main(String[]args)
    {


        for(int i=10;i>=1;i--)
        {
            System.out.println(i);
        }


        System.out.println("Blast off!");
         System.out.println("Even counting");

         for(int j=2;j<=20; j=j+2)
         {
              System.out.println(j);

         }

          System.out.println("odd counting");

          for(int k=15;k>=1;k--)
          {
              if(k%2==1)
              {
                   System.out.println(k);
              }

          }
           System.out.println("finished");
    }

}

what have you done so far to help you?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.