Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit fbcb297

Browse files
committed
array datasrtuctures
1 parent 298f76b commit fbcb297

File tree

1 file changed

+8
-0
lines changed
  • data_structures/2_Arrays/Solution

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
max = int(input('Enter max number:'))
2+
3+
odd_numbers = []
4+
5+
for i in range(1, max):
6+
if i % 2 ==1:
7+
odd_numbers.append(i)
8+
print('Odd numbers: ', odd_numbers)

0 commit comments

Comments
 (0)