File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33public class Exercise {
44
55 public static void main (String [] args ) {
6- @ SuppressWarnings ("resource" )
7- Scanner sc = new Scanner (System .in );
6+ @ SuppressWarnings ("resource" )
7+ Scanner sc = new Scanner (System .in );
88
9- System .out .print ("Gib bitte eine ganze Zahl ein: " );
10- int a = sc .nextInt ();
9+ System .out .print ("Gib bitte eine ganze Zahl ein: " );
10+ int a = sc .nextInt ();
1111
12- System .out .print ("Gib bitte eine weitere ganze Zahl ein: " );
13- int b = sc .nextInt ();
12+ System .out .print ("Gib bitte eine weitere ganze Zahl ein: " );
13+ int b = sc .nextInt ();
1414
15- double c = (a * 100.0 ) / b ;
15+ double c = (a * 100.0 ) / b ;
1616
17- System .out .println ("Ergebnis: " + a + " von " + b + " sind " + c + "%" );
17+ System .out .println ("Ergebnis: " + a + " von " + b + " sind " + c + "%" );
1818 }
1919}
You can’t perform that action at this time.
0 commit comments