How to set the logic?

Discussion in 'C' started by beycan, Oct 22, 2010.

  1. beycan

    beycan New Member

    Joined:
    Oct 22, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    [​IMG]

    I have a project something like in this picture. Printing a house to screen. If you look at the pic you understand what i mean. Printing vertical and horizontal ractangle is ok but i couldn't manage to do the roof. Actually i couldn't set up a logic in my mind. How should i set a "for" loop. While the spaces decrease the "/" should increase. How should i do that. Thanks...
     
  2. techgeek.in

    techgeek.in New Member

    Joined:
    Dec 20, 2009
    Messages:
    572
    Likes Received:
    19
    Trophy Points:
    0
    Occupation:
    EOC (exploitation of computers)..i m a Terminator.
    Location:
    Not an alien!! for sure
    Home Page:
    http://www.techgeek.in
    it's easy dear...if you have done star pattern programs then you can do this as well....just break the whole structure in simple patterns....I dnt have much time to give you the complete program for this..you have to try it yourself and post your problems if you get stuck somewhere...

    I would suggest you to practice with simple star patterns first...
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice