This repository has been archived by the owner on Jan 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 348
/
FizzBuzz-HardCoded.py
104 lines (103 loc) · 2.95 KB
/
FizzBuzz-HardCoded.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# 200 IQ implementation of FizzBuzz
# Author: @khong612
for i in range(1, 101):
if i == 1: print(i)
elif i == 2: print(i)
elif i == 3: print('Fizz')
elif i == 4: print(i)
elif i == 5: print('Buzz')
elif i == 6: print('Fizz')
elif i == 7: print(i)
elif i == 8: print(i)
elif i == 9: print('Fizz')
elif i == 10: print('Buzz')
elif i == 11: print(i)
elif i == 12: print('Fizz')
elif i == 13: print(i)
elif i == 14: print(i)
elif i == 15: print('FizzBuzz')
elif i == 16: print(i)
elif i == 17: print(i)
elif i == 18: print('Fizz')
elif i == 19: print(i)
elif i == 20: print('Buzz')
elif i == 21: print('Fizz')
elif i == 22: print(i)
elif i == 23: print(i)
elif i == 24: print('Fizz')
elif i == 25: print('Buzz')
elif i == 26: print(i)
elif i == 27: print('Fizz')
elif i == 28: print(i)
elif i == 29: print(i)
elif i == 30: print('FizzBuzz')
elif i == 31: print(i)
elif i == 32: print(i)
elif i == 33: print('Fizz')
elif i == 34: print(i)
elif i == 35: print('Buzz')
elif i == 36: print('Fizz')
elif i == 37: print(i)
elif i == 38: print(i)
elif i == 39: print('Fizz')
elif i == 40: print('Buzz')
elif i == 41: print(i)
elif i == 42: print('Fizz')
elif i == 43: print(i)
elif i == 44: print(i)
elif i == 45: print('FizzBuzz')
elif i == 46: print(i)
elif i == 47: print(i)
elif i == 48: print('Fizz')
elif i == 49: print(i)
elif i == 50: print('Buzz')
elif i == 51: print('Fizz')
elif i == 52: print(i)
elif i == 53: print(i)
elif i == 54: print('Fizz')
elif i == 55: print('Buzz')
elif i == 56: print(i)
elif i == 57: print('Fizz')
elif i == 58: print(i)
elif i == 59: print(i)
elif i == 60: print('FizzBuzz')
elif i == 61: print(i)
elif i == 62: print(i)
elif i == 63: print('Fizz')
elif i == 64: print(i)
elif i == 65: print('Buzz')
elif i == 66: print('Fizz')
elif i == 67: print(i)
elif i == 68: print(i)
elif i == 69: print('Fizz')
elif i == 70: print('Buzz')
elif i == 71: print(i)
elif i == 72: print('Fizz')
elif i == 73: print(i)
elif i == 74: print(i)
elif i == 75: print('FizzBuzz')
elif i == 76: print(i)
elif i == 77: print(i)
elif i == 78: print('Fizz')
elif i == 79: print(i)
elif i == 80: print('Buzz')
elif i == 81: print('Fizz')
elif i == 82: print(i)
elif i == 83: print(i)
elif i == 84: print('Fizz')
elif i == 85: print('Buzz')
elif i == 86: print(i)
elif i == 87: print('Fizz')
elif i == 88: print(i)
elif i == 89: print(i)
elif i == 90: print('FizzBuzz')
elif i == 91: print(i)
elif i == 92: print(i)
elif i == 93: print('Fizz')
elif i == 94: print(i)
elif i == 95: print('Buzz')
elif i == 96: print('Fizz')
elif i == 97: print(i)
elif i == 98: print(i)
elif i == 99: print('Fizz')
else: print('Buzz')