We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10d91a0 commit f6dc8caCopy full SHA for f6dc8ca
Modul1Basic/InputOuput/src/com/dicoding/javafundamental/inputouput/InputOutputFunction.java
@@ -8,10 +8,10 @@ public static void main(String[] args) {
8
Scanner scanner = new Scanner(System.in);
9
System.out.println("Program penjumalahan sangat sederhana");
10
System.out.print("Masukan Angka pertama : ");
11
- int value1 = scanner.nextInt();
+ int value = scanner.nextInt();
12
System.out.print("Masukan Angka kedua : ");
13
- int value2 = scanner.nextInt();
14
- int hasil = value1 + value2;
15
- System.out.println("Hasilnya adalah : " + hasil);
+ int anotherValue = scanner.nextInt();
+ int result = value + anotherValue;
+ System.out.println("Hasilnya adalah : " + result);
16
}
17
0 commit comments