Make this better. - Printable Version +- Qbasicnews.com (http://qbasicnews.com/newforum) +-- Forum: QbasicNews.Com (http://qbasicnews.com/newforum/forum-3.html) +--- Forum: Challenges (http://qbasicnews.com/newforum/forum-10.html) +--- Thread: Make this better. (/thread-1971.html) Pages:
1
2
|
Make this better. - Agamemnus - 09-11-2003 Basic program (er) is from a question on qbasic.com. how to do: for i% = 1 to n% for j% = 1 to n-1 for k% = 1 to n-2 for l% = 1 to n-3 for m% = 1 to 2 next i% etc. n% times. -------------------- A gradient is good. Could also change numbers to symbols.... or shades... or change the equation....... Code: CLS : n% = 9: DIM SHARED val1(2 TO n%) AS INTEGER Make this better. - LinkMaster Sab - 09-11-2003 Eh, I'd give it a try, but I'm not too sure what exactly you're doing with it... Make this better. - Agamemnus - 09-11-2003 Quote:Eh, I'd give it a try, but I'm not too sure what exactly you're doing with it... Nothing...er...... Make this better. - LinkMaster Sab - 09-11-2003 What I meant is, what exactly does it do? Make this better. - Agamemnus - 09-11-2003 It does what I said it does..... er.... except in the example I didn't put down what the number turns out to be.. Code: for i% = 1 to 6 Except it does this N% times. Make this better. - Neo - 09-11-2003 What does this program calculate????! Except for 6! of course (n! when using n%). If you want to calculate n! what are all those innerloops for? Or does it calculate something useful... Make this better. - Agamemnus - 09-11-2003 run it...... Make this better. - LinkMaster Sab - 09-13-2003 Ah, I guess I understand it now. I guess I'll give it a shot. Make this better. - Agamemnus - 09-17-2003 1) There is a sudden unintended color shift once in a while. I just can't seem to get rid of it. Happens when t3& rolls over. HELP! EDIT: FIXED. Works great now! 2) Try not to get epileptic seizures while running this program. EDIT 3) Stand a few feet away and look at what happens on your computer screen. It's more effective that way. Code: CLS : SCREEN 13: n% = 5: DIM SHARED val1(2 TO n%) AS INTEGER Make this better. - Agamemnus - 10-01-2003 *cries* |