pyramid

Page 1 of 1

2 Replies - 231 Views - Last Post: 06 August 2010 - 06:57 PM Rate Topic: -----

#1 jhayzbot  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 1
  • Joined: 06-August 10

pyramid

Posted 06 August 2010 - 05:20 PM

can you help me in my assignment...??
creating a pyramid with 14 base..
BRICKS_WIDTH(30px)
BRICKS_HEIGHT(12px)
can you give the of this..??/
Is This A Good Question/Topic? -1
  • +

Replies To: pyramid

#2 bcranger  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 252
  • View blog
  • Posts: 1,199
  • Joined: 01-February 10

Re: pyramid

Posted 06 August 2010 - 05:27 PM

DIC has a policy where we like to see your good faith efforts before attempting to help you. Seeing some of your code actually helps us help you by making it easier for us to spot the source of trouble for you :)

As for creating a pyramid, the general idea would be to use a loop and increment the number of bricks as you progress through the loop. Of course, you will need to implement your requirements such as brick width and height.
Was This Post Helpful? 0
  • +
  • -

#3 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2872
  • View blog
  • Posts: 11,031
  • Joined: 15-July 08

Re: pyramid

Posted 06 August 2010 - 06:57 PM

Check out rule #1...

Topic Closed.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1