Anfang von ordentlichen Programmieren
This commit is contained in:
8
2.Erste Programme/6. Spielerei/03.02.2022.py
Normal file
8
2.Erste Programme/6. Spielerei/03.02.2022.py
Normal file
@ -0,0 +1,8 @@
|
||||
print("Hallo und Willkommen zum Taschenrechner")
|
||||
print("Dieser Taschenrechner kann nur addieren.")
|
||||
print("Bitte gib die erste Zahl ein:")
|
||||
zahl1 = int(input())
|
||||
print("Bitte gib die zweite Zahl ein:")
|
||||
zahl2 = int(input())
|
||||
print("Die Summe lautet:", zahl1 + zahl2)
|
||||
exit()
|
Reference in New Issue
Block a user