Loop Asterisk Exercise Program

Hi, I know that a lot of students enrolled at basic programming course are searching for codes to display different layouts of asterisks using the “for loop” statement. I created a program for them to study it.

Click here to view the java source code.
http://pastie.org/1072278

Below is the sample output.

    *
    **
    ***
    ****
    *****
    ******
    *******
    ********
    *********
    **********

    **********
    *********
    ********
    *******
    ******
    *****
    ****
    ***
    **
    *

             *
            **
           ***
          ****
         *****
        ******
       *******
      ********
     *********
    **********

    **********
     *********
      ********
       *******
        ******
         *****
          ****
           ***	
            **
             *

You can use this guide for your quizzes and exams..

Cheers

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s