Feladatok 2

This commit is contained in:
2021-11-25 14:33:56 +01:00
parent bcd7815c1e
commit f989207478
3 changed files with 33 additions and 0 deletions

7
kamat/kamat.py Normal file
View 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
View 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
View 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)