Translate

Tuesday, June 7, 2016

Pattern Programs

Write a program to print a following given pattern


 54321012345
   432101234
     3210123
       21012
         101
           0


            0
          101
        21012
      3210123
    432101234
  54321012345


                    z
                  zyz
                zyxyz
              zyxwxyz
           zyxwvwxyz
             zyxwxyz
               zyxyz
                 zyz
                   z


        5
      545
    54345
  5432345
543212345
  5432345
    54345
      545
        5


No comments:

Post a Comment