Feladatok 2
This commit is contained in:
7
kamat/kamat.py
Normal file
7
kamat/kamat.py
Normal file
@@ -0,0 +1,7 @@
|
||||
betet = 10000
|
||||
kamatlab = 0.08
|
||||
kamatozasok = 12
|
||||
t = input()
|
||||
|
||||
szamolas = betet * (1 + kamatlab / kamatozasok) ** (kamatozasok * t)
|
||||
print(szamolas)
|
||||
13
ora/ora.py
Normal file
13
ora/ora.py
Normal file
@@ -0,0 +1,13 @@
|
||||
most = 14
|
||||
ebreszto = 51
|
||||
nap = 0
|
||||
ebresztes = most + ebreszto
|
||||
a = True
|
||||
while a:
|
||||
if(ebresztes > 24):
|
||||
ebresztes -= 24
|
||||
nap += 1
|
||||
else:
|
||||
a = False
|
||||
|
||||
print(ebresztes)
|
||||
13
ora2/ora2.py
Normal file
13
ora2/ora2.py
Normal file
@@ -0,0 +1,13 @@
|
||||
most = input()
|
||||
ebreszto = input()
|
||||
nap = 0
|
||||
ebresztes = most + ebreszto
|
||||
a = True
|
||||
while a:
|
||||
if(ebresztes > 24):
|
||||
ebresztes -= 24
|
||||
nap += 1
|
||||
else:
|
||||
a = False
|
||||
|
||||
print(ebresztes)
|
||||
Reference in New Issue
Block a user