Turing character graphics
Author |
Message |
konrbear
|
Posted: Wed Mar 19, 2014 11:39 pm Post subject: Turing character graphics |
|
|
What is it you are trying to achieve?
for i: 0..4
for j: 1..5
put "*" ..
put " "..
end for
put ""
end for
What is the problem you are having?
I need the * to look like this.
*
* *
* * *
* * * *
* * * * *
Describe what you have tried to solve this problem
I've tried opposite the code and changing the color to (31/white) but not sure. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Raknarg
![](http://compsci.ca/v3/uploads/user_avatars/3745510004d8be6689b92f.jpg)
|
Posted: Thu Mar 20, 2014 12:07 am Post subject: RE:Turing character graphics |
|
|
Try thinking about how to structure your for loops first. You have to have a loop for each row. Each row needs to run between 1 to 5 times. Somehow in total you need to have it print a star 15 times.
Look at your code right now. It runs 25 times. You need it to run only 15 times, and each step runs 1 more time than the last |
|
|
|
|
![](images/spacer.gif) |
konrbear
|
Posted: Thu Mar 20, 2014 2:22 pm Post subject: RE:Turing character graphics |
|
|
I figured it out. Thanks! |
|
|
|
|
![](images/spacer.gif) |
|
|