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

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




PostPosted: Thu Sep 26, 2002 7:14 am   Post subject: Some help

i need to make a program that makes a "Wave" like this

#
##
###
####
###
##
#
##
###
####
#####
######

but only problem is he wants all the lines to be differnt colors, i have no clue how to start this, any ideas Question
Sponsor
Sponsor
Sponsor
sponsor
Dan




PostPosted: Thu Sep 26, 2002 7:47 am   Post subject: this better not be school work

ok 1st to chage colors in text you use this coamnd:

color (color's name or num here)

and to do the #'s you shode use some nested loops like this:


code:

for i : 1 .. 5
   
    color(i) %sets the color of the text
   
    for i2 : 1 .. i
        put "#" .. %puts #'s on the screen
    end for
   
    put "" %makes the text go to the next line
   
end for


now i did not do the hole thing for you becuse i think this is school wroke and it best to try to do it so you can lrean.
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
WooFerPPK




PostPosted: Thu Sep 26, 2002 7:50 am   Post subject: (No subject)

thanks i just needed to know how to do the color
Smile
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: