1
vote
Vote UpVote

Fun Code of the Week # 5

Nick Hodges – What is your FizzBuzz solution?  Any comments on mine? If this is an interview question, what are you looking for? Here is FizzBuzz in over 150 languages. For the record, I spent no more than three minutes to write this. :-) program FizzBuzz; {$APPTYPE CONSOLE} {$R *.res} uses System.SysUtils; var i: integer; WriteNumber: Boolean; begin try for i := 1 to 100 do begin WriteNumber := True; if i mod 3 = 0 then begin Write('Fizz'); WriteNumber := False; end; if i mod 5 = 0 then begin Write('Buzz'); ...
Favorite? Off-Topic? nick@nickhodges.com @ 2012-10-25 03:39

Statistics

Visits: 1081
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Primoz Gabrijelcic
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)