Monday, March 06, 2006

400 roses

my pangga gave me 400 roses today..
 
eto o.. =p
 
DECLARE @VAR AS INT, @FLAG AS INT, @POINT AS INT
DECLARE @SQL AS VARCHAR(8000)
 
SET @POINT = 20
SET @VAR = 1
SET @FLAG = 1
SET @SQL = 'SELECT SPACE(15) '
WHILE @VAR > 0
 
BEGIN 
 SET @SQL = @SQL + ' UNION ALL SELECT STUFF(SPACE(15),10,' + CONVERT(VARCHAR(20),@VAR)
 + ',REPLICATE(
''@};-'','  + CONVERT(VARCHAR(20),@VAR) + ')) + ''\ _ /___''' 
 IF @VAR >= @POINT
  SET @FLAG = -1
 SET @VAR = @VAR + @FLAG
END
EXEC (@SQL)

13 Comments:

At 3/07/2006 2:29 AM, Blogger beng said...

whew! whatever happened to the traditional roses? hehehe! syempre, i tried to figure it out, can he write it on C++ please? hehehe! cout, cout! =P

 
At 3/08/2006 10:52 AM, Blogger Sam & Furness said...

aaaawwww.. how sweet!! hehe now we really know that oneal and jane have had tooooo much coding already!! =P nevertheless, 400 roses is 400 roses. kahit virtual pa yan. haha! :D

and unlike harbie, hindi ko na inintindi. haha! basta sabi ni jane 400 daw.. tatanggapin ko na. i sooo hate coding talaga. much less figure it out =? teehee

 
At 3/08/2006 12:04 PM, Blogger beng said...

hahaha! i tried but after reading through twice, i gave up. =P not my "language", literally. =P

 
At 3/08/2006 11:12 PM, Blogger jane said...

i didnt run the code din naman to check if it's 400.. hehehe.. i trust that it is =D

kelan ko din lang naging language yan bengers.. ;) yakang yaka natin! =)

 
At 3/09/2006 9:39 AM, Blogger beng said...

di ko nga alam kung anong language yan eh. =P

anyways, meron bang mahirap para sayo jane? di ka credible pagtanungan ng difficulty level eh. hehehe! =P

 
At 3/09/2006 2:17 PM, Blogger twistedzero said...

eto sya! :) sayang nag-wrap!

@};- \ _ /___
@};-@};- \ _ /___
@};-@};-@};- \ _ /___
@};-@};-@};-@};- \ _ /___
@};-@};-@};-@};-@};- \ _ /___
@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};-@};-\ _ /___
@};-@};-@};-@};-@};- \ _ /___
@};-@};-@};-@};- \ _ /___
@};-@};-@};- \ _ /___
@};-@};- \ _ /___
@};- \ _ /___

 
At 3/09/2006 4:12 PM, Blogger geWi said...

walang magawa pangs ko. hihihihi.

 
At 3/10/2006 11:14 PM, Blogger beng said...

hahaha! *lol* at raymond... at least now we know it works. ;-P

 
At 3/11/2006 1:40 AM, Blogger Sam & Furness said...

aba!! 400 nga!! :D hehe

 
At 3/11/2006 1:31 PM, Anonymous Anonymous said...

hahaha ... yan ang walang magawa! hehehe ... actually, pwede nyo baguhin yung dami ng roses ... palitan nyo lang yung value nung @POINT ... square nyo yung value nun, yun yung dami ng roses =) .. kung tama yung pagkakacompute ko .. hehe ...

 
At 3/12/2006 3:00 PM, Blogger Sam & Furness said...

aaayy. coding?! 'yaw na! :D hehe

 
At 3/13/2006 3:16 AM, Blogger beng said...

ayawan na! coding na itu!

*walks out the room tagging furness along*

hehehe! ;-P

 
At 3/13/2006 11:04 AM, Blogger geWi said...

ano daw? l o l.

 

Post a Comment

<< Home