Informatik_3

This commit is contained in:
2022-03-17 14:20:54 +01:00
parent e0057812a5
commit 5c68ea4a97
9 changed files with 798 additions and 1 deletions

View File

@ -22,4 +22,4 @@ bmi=gewicht/(größe**2) # Berechnung Body-Mass-Index
# Ausgabe
print("Sie haben einen BMI von", round(bmi, 2), '.')
print("Sie haben einen BMI von " + str(round(bmi, 2)) + '.')

View File

@ -0,0 +1,12 @@
# Übung Wertzuweisung
a=65
b=3
c=10
k=c**3-a #10^3-65=935
m=5-(c-a)+(c-b)**2 #5-(10-65)+(10-3)^2=109
o=c%3+c//4 # 10%3+10//4=1+2=3
p=a*(c**5-1)+b # 65*((10^5)-1)+3=6499935+3=6499938
print(k,m,o,p)