|
@ -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; |
|
|
} |
|
|
} |
|
|