You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
305 B
15 lines
305 B
2 years ago
|
#math Package importieren
|
||
|
import math
|
||
|
#PI = 3.1415
|
||
|
|
||
|
# berechnet den Flächeninhalt eines Kreises
|
||
|
# mit dem Radius r
|
||
|
# Parameter: r - Radius des Kreises
|
||
|
def berechne_flaecheninhalt(r):
|
||
|
|
||
|
a = math.pi * r**2
|
||
|
return a
|
||
|
|
||
|
flaeche = berechne_flaecheninhalt(10)
|
||
|
print(f"Der Flächeninhalt beträgt: {flaeche}")
|