Skip to content

Commit f6dc8ca

Browse files
Update InputOutputFunction.java
1 parent 10d91a0 commit f6dc8ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Modul1Basic/InputOuput/src/com/dicoding/javafundamental/inputouput/InputOutputFunction.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ public static void main(String[] args) {
88
Scanner scanner = new Scanner(System.in);
99
System.out.println("Program penjumalahan sangat sederhana");
1010
System.out.print("Masukan Angka pertama : ");
11-
int value1 = scanner.nextInt();
11+
int value = scanner.nextInt();
1212
System.out.print("Masukan Angka kedua : ");
13-
int value2 = scanner.nextInt();
14-
int hasil = value1 + value2;
15-
System.out.println("Hasilnya adalah : " + hasil);
13+
int anotherValue = scanner.nextInt();
14+
int result = value + anotherValue;
15+
System.out.println("Hasilnya adalah : " + result);
1616
}
1717
}

0 commit comments

Comments
 (0)