dodao cas3, cas4, napravio dir strukturu
This commit is contained in:
20
Cas3/od_100_do_0_sa_7.py
Executable file
20
Cas3/od_100_do_0_sa_7.py
Executable file
@@ -0,0 +1,20 @@
|
||||
# Svi brojevi od 100 do 0 ako su deljivi sa 7
|
||||
|
||||
# while petlja
|
||||
|
||||
broj = 100
|
||||
|
||||
while broj > 0:
|
||||
if (broj % 7 == 0):
|
||||
print(broj)
|
||||
broj -= 1
|
||||
|
||||
input()
|
||||
|
||||
# for petlja
|
||||
|
||||
for broj in range(100, 0, -1):
|
||||
if (broj % 7 == 0):
|
||||
print(broj)
|
||||
|
||||
input()
|
Reference in New Issue
Block a user