Results 1 to 10 of 10

Thread: how can you print this using C programing?

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2007
    Posts
    208

    how can you print this using C programing?

    how can you code to print the following output using C programing:

    1
    1 2 1
    1 2 3 2 1
    1 2 3 4 3 2 1
    1 2 3 4 5 4 3 2 1
    this is like a pyramid, it is narrow at the top and it becomes wide as it goes to the bottom.

    and what about to print the reverse of the above:



    1 2 3 4 5 4 3 2 1
    1 2 3 4 3 2 1
    1 2 3 2 1
    1 2 1
    1
    thanks
    Last edited by nebrom; May 27th, 2007 at 12:23 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width