Browse Source

eingabe

remotes/origin/H.F.F/Taschenrechner
fdai7446 2 years ago
parent
commit
c511befaf7
  1. 4
      Taschenrechner.java

4
Taschenrechner.java

@ -59,7 +59,7 @@ public class Taschenrechner {
return Math.PI; return Math.PI;
} }
int eingabe() {
static int eingabe() {
Scanner scan = new Scanner(System.in); Scanner scan = new Scanner(System.in);
int intScan= scan.nextInt(); int intScan= scan.nextInt();
@ -80,7 +80,7 @@ public class Taschenrechner {
switch (s) { switch (s) {
case 1: { case 1: {
addition(s, s);
addition(eingabe(), eingabe());
break; break;
} }
case 2: { case 2: {

Loading…
Cancel
Save