codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
<?php for($i=1; $i<=100; $i++) { $res= ''; if(($i%3)===0){ $res = 'Fizz'; } if(($i%5)===0){ $res .= 'Buzz'; } if($res === '') { $res = $i; } echo $res."\n"; }
Private
[
?
]
Run code
Submit