
-----------------------------------
Fubar
Sun May 15, 2005 1:03 pm

A little help
-----------------------------------
I figured it out thanks Cervantes.

-----------------------------------
Cervantes
Sun May 15, 2005 2:17 pm


-----------------------------------
Welcome to compsci.ca.  http://www.sorcerers.net/ubb/smilies/wavey.gif
Your question sounds like homework to me.  Know that we don't do homework for you.  I hope that's not what you're asking.  To help you, though:
You'll definately need to know for loops.  Getting the top and bottom lines of the z should be easy using for loops (actually, it's easier without for loops and with using repeat).  Getting the middle line is a little harder.  Use a for loop to go down from the top of the z to the bottom and the number of spaces to put before the '*' is directly related to how far down the z you are.
Hopefully you understood that.  If not... well, it's really not that hard.  Thinking about it for a minute or two should do the trick.  :wink:

Oh, and if you don't know for loops, here's a link to the [url=http://www.compsci.ca/v2/viewtopic.php?t=3678]tutorial.

-----------------------------------
Fubar
Sun May 15, 2005 2:42 pm


-----------------------------------
well basically i couldn't get the middle part of the 'z'. 


var size : int
get size
if (size < 3 and size > 25) then
    put "Invalid input"
elsif (size >= 3 and size  25) then
    put "Invalid input"
elsif (size >= 3 and size 