SHARE
TWEET

Untitled

a guest Nov 12th, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. #BukuPelajaran
  3.  
  4. lagi='y'
  5. while [ $lagi == 'y' ] || [ $lagi == 'Y' ];
  6. do
  7.     clear
  8.     echo "Oleh: Adam Kahardiansyah - J3C118091";
  9.     echo "----------------";
  10.     echo "Buku Pelajaran  ";
  11.     echo "----------------";
  12.     echo "1. Buku TRO     ";
  13.     echo "2. Buku SO      ";
  14.     echo "3. Buku APSI    ";
  15.     echo "4. Buku ARSIKOM ";
  16.     echo "5. Buku GRAFIKA ";
  17.     echo "6. Buka BASDAT  ";
  18.     echo "7. Buku PBO     ";
  19.     echo "0. Exit         ";
  20.     read -p "Masukan Pilihan : " pil;
  21.  
  22. echo -n "Banyaknya buku : ";
  23. read banyak
  24.  
  25. if [ $pil -eq 1 ];
  26. then
  27.     let hsl=banyak*90000
  28. elif [ $pil -eq 2 ];
  29. then
  30.     let hsl=banyak*85000
  31. elif [ $pil -eq 3 ];
  32. then
  33.     let hsl=banyak*89000
  34. elif [ $pil -eq 4 ];
  35. then
  36.     let hsl=banyak*99000
  37. elif [ $pil -eq 5 ];
  38. then
  39.     let hsl=banyak*95000
  40. elif [ $pil -eq 6 ];
  41. then
  42.     let hsl=banyak*93000
  43. elif [ $pil -eq 7 ];
  44. then
  45.     let hsl=banyak*94000
  46. elif [ $pil -eq 0 ];
  47. then
  48.     exit 0
  49. else
  50.     echo "Pilihan tidak ada";
  51.     exit 1
  52. fi
  53.  
  54. echo "Harga Bayar : Rp. $hsl"
  55. echo "Terima Kasih"
  56. echo
  57. break
  58. done
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top