Skip to content
Snippets Groups Projects
Commit 63a4d4eb authored by Nico Hautakoski's avatar Nico Hautakoski
Browse files

Fixed

parent d3ac610b
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ def vahenna(eka: float, toka: float):
return erotus
def kerro(eka: float, toka: float):
tulo = eka + toka
tulo = eka * toka
return tulo
def jaa(eka: float, toka: float):
......@@ -40,11 +40,11 @@ while True:
tulos = laske_yhteen(tulos, luku)
elif valinta == 2:
luku = kysy_luku()
tulos = laske_yhteen(tulos, luku)
tulos = vahenna(tulos, luku)
elif valinta == 3:
luku = kysy_luku()
tulos = kerro(tulos, luku)
elif valinta == 4:
luku = kysy_luku()
tulos = jaa(luku, tulos)
tulos = jaa(tulos, luku)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment