codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
for idx in range(1, 101): if idx % 3 == 0 and idx % 5 == 0: print('fizzbuzz') elif idx % 3 == 0: print('fizz') elif idx % 5 == 0: print('buzz') else: print(idx)
Private
[
?
]
Run code
Submit