title: Can I do cashier bash script with while loop?
body: <p>I tried doing simple cashier system and it seems that I can't sum all of the price as shown below.</p>
  
  <p>I know what am doing is wrong I really would appreciate if someone can tell me what the best way to do it.</p>
  
  <pre class="lang-sh prettyprint-override"><code>#!/bin/bash
  while [ "$order" != "n" ]
  do
      echo "Enter item : "
          read item
      echo "Enter price : "
          read price
          res1= $(($price + $price))
  echo "Do you want another order : "
      read order
  done
  
  echo "your orders $item"
  echo "the price is $res1"
  </code></pre>