Showing posts with label pattern. Show all posts
Showing posts with label pattern. Show all posts

Monday, January 30, 2012

Pattern -3

Write a Program to enter the no. of rows & print the following Pattern:
*
*  *
*  *  *
*  *  *  *
*  *  *  *  *

Pattern - 2

Write a Program to enter the no. of rows & print the following Pattern:
         +
      + + +
   + + + + +
+ + + + + + +

Wednesday, January 25, 2012

Pattern -1

Write a Program to enter a starting number(x) and print the number the following Pattern :
for x=5
5
54
543
5432
54321