In this calculator user need to choice menu first.
1. Penjumlahan
2. Pengurangan
3. Perkalian
4. Pembagian
user just need to input number of menu, example 1
for penjumlahan (addition).
After choice menu, user can input the first number, Example Angka Pertama: 18
After input first number, user must input the second number, Example Angka Kedua: 9
User can press Enter
to see the result
Now, user's console will be like this:
Menu:
1. Penjumlahan
2. Pengurangan
3. Penrkalian
4. Pembagian
Pilih Menu: 1
Angka pertama: 18
Angka kedua: 9
18 + 9 = 27
Apakah anda ingin menghitung lagi? (Y / N):
if user want to using calculator again, user can type y
or Y
on keyboard and type another key to end the calculator