codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
N = 100 for i in range(1, N + 1): to_print = '' if i % 3 == 0: to_print += 'Fizz' if i % 5 == 0: to_print += 'Buzz' if len(to_print) < 1: to_print = str(i) print(to_print)
Private
[
?
]
Run code
Submit