wu :: forums
« wu :: forums - FOR LOOP TWEAKS »

Welcome, Guest. Please Login or Register.
May 13th, 2024, 6:13pm

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   cs
(Moderators: towr, Grimbal, ThudnBlunder, SMQ, Icarus, Eigenray, william wu)
   FOR LOOP TWEAKS
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: FOR LOOP TWEAKS  (Read 2374 times)
Nachiket
Newbie
*





  njacharya  
WWW

Gender: male
Posts: 2
FOR LOOP TWEAKS  
« on: Nov 29th, 2003, 8:31pm »
Quote Quote Modify Modify

1.
 
int i, n=20;  
for (i=0; -i < n; i--) {printf("-");};  
 
2.
 
int i, n=20;  
for (i=0; i < n; n--) {printf("-");};  
 
3.
 
int i, n=20;  
for (i=0; i + n; i--) {printf("-");};  
 
 
 
 
IP Logged
Dudidu
Full Member
***





   


Posts: 227
Re: FOR LOOP TWEAKS  
« Reply #1 on: Nov 30th, 2003, 12:36am »
Quote Quote Modify Modify

Nachiket hi,
This problem already been dealt with (answered and even a variation of it was suggested) - see In three ways thread.
 
Sorry...Undecided
 
« Last Edit: Nov 30th, 2003, 12:37am by Dudidu » IP Logged
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board