From 2f4bfa409820c3436fdd1e6b5b4efad0a6aeb6eb Mon Sep 17 00:00:00 2001 From: fdai7446 <––fdai7446@fhfddvz1.rz.hs-fulda.de> Date: Fri, 10 Feb 2023 15:07:40 +0100 Subject: [PATCH] startTaschenrechner case4 --- Taschenrechner.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Taschenrechner.java b/Taschenrechner.java index 3321fd3..faaff86 100644 --- a/Taschenrechner.java +++ b/Taschenrechner.java @@ -99,6 +99,13 @@ public class Taschenrechner { break; } + case 4:{ + System.out.println("Potenzieren\n"); + + System.out.println("Ergebnis:" + potenzieren(eingabe(), eingabe())); + + break; + } default: throw new IllegalArgumentException("Unexpected value: " + s); }