python:loesungen:lingrog
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
python:loesungen:lingrog [2020/05/16 14:57] – angelegt lutz | python:loesungen:lingrog [2020/05/16 14:59] (aktuell) – lutz | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== Lineare Programme - Aus- und Eingabe - Lösungen ====== | ====== Lineare Programme - Aus- und Eingabe - Lösungen ====== | ||
- | <code loesung_3_1.py | + | < |
a=float(input(" | a=float(input(" | ||
b=float(input(" | b=float(input(" | ||
Zeile 12: | Zeile 12: | ||
print(" | print(" | ||
print(" | print(" | ||
+ | </ | ||
+ | |||
+ | <code python loesung_3_2.py> | ||
+ | a=int(input(" | ||
+ | b=int(input(" | ||
+ | summe=a+b | ||
+ | differenz=a-b | ||
+ | produkt=a*b | ||
+ | quotient=a/ | ||
+ | quotientganz=a// | ||
+ | rest=a%b | ||
+ | print(" | ||
+ | print(" | ||
+ | print(" | ||
+ | print(" | ||
+ | print(" | ||
</ | </ |
python/loesungen/lingrog.1589633877.txt.gz · Zuletzt geändert: 2020/05/16 14:57 von lutz