Skip to content

Commit c48639a

Browse files
author
github-actions
committed
Google Java Format
1 parent 9540d07 commit c48639a

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

Exercise.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
public 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
}

0 commit comments

Comments
 (0)