Printing Pattern-3

You may also like...

4 Responses

  1. Megha says:

    plz explain the working of loops ,it only gives the code but how the internal working is going on can u xpln plzz sir.

    • The Outer loop (loop with variable i) iterates over each row . Since we need to start printing from the 1st row and move to the nth row. The Inner loop(loop with variable j) is used to iterate within a row i.e it starts with printing 1 and goes on printing till the printed number equals the row number. For example : See the 3rd row. It starts with 1 and goes till the row number i.e 3.

  1. October 2, 2014

    […] Next Post: Pattern Printing 5 Category: Printing Pattern Previous Post: Pattern Printing 3 […]

  2. October 2, 2014

    […] Post: Pattern Printing 3 Category: Printing Pattern Previous Post: Pattern Printing […]

Leave a Reply

Your email address will not be published. Required fields are marked *