Browse Source

Pi funktion refactoring

remotes/origin/fdai7487-main-patch-56841
fdai7446 2 years ago
parent
commit
6093363c95
  1. 4
      Taschenrechner.java

4
Taschenrechner.java

@ -55,7 +55,7 @@ public class Taschenrechner {
return temp; return temp;
} }
static double pie() {
static double pi() {
return Math.PI; return Math.PI;
} }
@ -142,7 +142,7 @@ public class Taschenrechner {
case 9:{ case 9:{
System.out.println("Pi\n"); System.out.println("Pi\n");
System.out.println("Pi:" + pie());
System.out.println("Pi:" + pi());
break; break;
} }

Loading…
Cancel
Save