Files
Projekttage/Uebungen/TimMcCool
T
2019-07-22 10:07:30 +02:00

7 lines
340 B
Plaintext

vorname = input (str("Vorname:"))
nachname = input (str("Nachname:"))
geschlecht = input (str("Geschlecht (m/w)"))
alter = input(str("Alter:"))
if alter >= 18: if geschlecht = m: print("Hallo Herr "+nachname) anrede = "Ihnen" anrede2 =
if alter >= 18: if geschlecht = w: print("Hallo Frau "+nachname)
if alter <= 18: print("Hallo "+vorname)