Thread: plaese help me...

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    4

    plaese help me...

    Write a recursive function that takes as a parameter a non-negative integer and generated the following pattern of stars. If the non-negative is n, then the pattern generated is:

    n = 1
    1

    n = 2
    0
    010

    n = 3
    0
    010
    01010

    n = 4
    0
    010
    01010
    0101010


    thank u very much!!!
    Last edited by aloy; 02-29-2008 at 04:08 AM.

Popular pages Recent additions subscribe to a feed