#!/bin/bash
echo -n "Anggota Pilihan Anda?(y/t)";read jawab
if [[ $jawab = "y" ]]
then
echo -n "jumlah barang =";read a
echo -n "harga barang =";read b
bayar=`expr $a \* $b \* 90 \/ 100`
echo "bayar = $bayar"
elif [[ $jawab = "t" ]]
then
echo -n "jumlah barang =";read a
echo -n "harga barang =";read b
bayar=`expr $a \* $b`
echo "bayar = $bayar"
else
echo "Salah input!"
fi
exit 0