Computer Science Canada help with draw random stars |
Author: | Misha [ Fri Oct 01, 2004 6:16 pm ] | ||
Post subject: | help with draw random stars | ||
hi, i am new and i would like to know one thing. i did a whole code but i don't know how to draw as many stars as the user inputed. this is what i have for now
thanx |
Author: | Dan [ Fri Oct 01, 2004 6:38 pm ] | ||
Post subject: | |||
Well i whould recomend using a for loop rather then a noraml loop and ether way you should ask the user for how many starts befor you start the loop. So somting like this: Quote: Ask user for num starts Input aswser For loop that runs for num starts inputed draw ramdom start end for loop The sintext for the for loop in turing is for var:int : start point .. end point so an example whould be:
|