Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Turing character graphics
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
konrbear




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
Raknarg




PostPosted: 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
konrbear




PostPosted: Thu Mar 20, 2014 2:22 pm   Post subject: RE:Turing character graphics

I figured it out. Thanks!
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: