Skip to content
Snippets Groups Projects
Commit 5ee63ec0 authored by Helmi Puustinen's avatar Helmi Puustinen
Browse files

Update laskin.py

parent f8eed19f
No related branches found
No related tags found
No related merge requests found
......@@ -10,19 +10,19 @@ while True:
if merkki == "+":
tulos = edellinen + luku
print(tulos)
print(f"{tulos}.")
edellinen = tulos
elif merkki == "-":
tulos = edellinen - luku
print(tulos)
print(f"{tulos}.")
edellinen = tulos
elif merkki == "*":
tulos = edellinen * luku
print(tulos)
print(f"{tulos}.")
edellinen = tulos
elif merkki == "/":
tulos = edellinen / luku
print(tulos)
print(f"{tulos}.")
edellinen = tulos
print("Kiitos ja moi!")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment