Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 25 Nov 2014, 19:28
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
FizzBuzz
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 3 of 3 Posts_count   Goto page: Previous 1, 2, 3
Author Message
vovchik


Joined: 23 Oct 2006
Posts: 1287
Location: Ukraine

PostPosted: Wed 09 Jan 2013, 16:36    Post_subject:  

Dear starhawk,

It has a command-line converter that also runs gcc and a gui version that also runs gcc and has syntax highlighting....

With kind regards,
vovchik
Back to top
View user's profile Send_private_message 
GustavoYz


Joined: 07 Jul 2010
Posts: 897
Location: .ar

PostPosted: Thu 10 Jan 2013, 13:54    Post_subject:  

starhawk wrote:
But I'm old-fashioned Very Happy

Code:
10  REM FIZZBUZZ SOLUTION BY CHRISTOPHER HAVEL, 2012
20  REM IMPLEMENTED IN QBASIC
30  PRINT
40  COUNT% = 0
50  COUNT% = COUNT% + 1
60  IF COUNT% MOD 3 = 0 THEN GOTO 100 ELSE GOTO 80
70  IF COUNT% MOD 5 = 0 THEN GOTO 120 ELSE GOTO 80
80  PRINT COUNT%
90  IF COUNT% = 100 THEN GOTO 140 ELSE GOTO 50
100 IF COUNT% MOD 5 = 0 THEN PRINT "FIZZBUZZ" ELSE PRINT "FIZZ"
110 IF COUNT% = 100 THEN GOTO 140 ELSE GOTO 50
120 IF COUNT% MOD 3 = 0 THEN PRINT "FIZZBUZZ" ELSE PRINT "BUZZ"
130 IF COUNT% < 100 THEN GOTO 50
140 PRINT
150 PRINT "ALL DONE!"
160 END


By some reason, they still teach Basic (Pascal too) to programmers in some Universities here... Rolling Eyes
Didn't knew people still "GOTO" voluntarily... Razz

_________________

Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 3 of 3 Posts_count   Goto page: Previous 1, 2, 3
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0613s ][ Queries: 12 (0.0256s) ][ GZIP on ]