From 328f73df66ee02a47ce478874b47fea7b50aff13 Mon Sep 17 00:00:00 2001 From: fdai7446 <––fdai7446@fhfddvz1.rz.hs-fulda.de> Date: Fri, 10 Feb 2023 22:18:34 +0100 Subject: [PATCH] kreisUmfang --- Taschenrechner.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Taschenrechner.java b/Taschenrechner.java index 37632dc..85ab1b1 100644 --- a/Taschenrechner.java +++ b/Taschenrechner.java @@ -63,6 +63,10 @@ public class Taschenrechner { return Math.E; } + static double kreisUmfang(int r) { + return 2 * r * Math.PI; + } + static int eingabe() { Scanner scan = new Scanner(System.in); int intScan = 0;