Postingan

Menampilkan postingan dari Desember, 2019

Program Kalkulator Sederhana Menggunakan UBUNTU

Isi Program di dalam NANO #! bin/bash echo "------Nama : Wahyudin------" echo "------NIM  : 1802006-------" echo "------Kelas: 3tiE----------" echo "----Program Kalkulator-----" echo -n "bilangan 1 :" read bil1 echo -n "bilangan 2 :" read bil2 echo -n "Operator :" read op if [ $op = + ]  then  echo "$bil1 $op $bil2 = `expr $bil1 + $bil2`" elif [ $op = - ]  then  echo "$bil1 $op $bil2 = `expr $bil1 - $bil2`" elif [ $op = / ]  then  echo "$bil1 $op $bil2 = `expr $bil1 / $bil2`" elif [ $op = x ]  then  echo "$bil1 $op $bil2 = `expr $bil1 \* $bil2`" fi Maka HASILNYA  wahyudin@VirtualBox:~$ sh tugaspakferi.sh ------Nama : Wahyudin------ ------NIM  : 1802006------- ------Kelas: 3tiE---------- ----Program Kalkulator----- Bilangan 1 :5 Bilangan 2 :5 Operator :+ 5 + 5 = 10 wahyudin@VirtualBox:~$ sh tugaspakferi.sh ------Nama : Wahyudin------ -----...