title: I am getting an error while computing the compound interest
body: <pre><code>echo &quot;Enter the principal value -&gt; &quot; 
  read P
  echo &quot;Enter the rate of intrest -&gt; &quot; 
  read R
  echo &quot;Enter the number of years -&gt; &quot; 
  read t
  echo &quot;Enter the number of times applied per year -&gt;&quot;
  read n
  
  echo &quot;The principal ,rate of interest and number of years are $P $R $t&quot;
  s=`echo $P \* $R \* $t \* 0.01 | bc -l`
  echo &quot;The simple Interest is $s&quot;
  amt=`echo &quot;scale=2;$P * ( 1 + $R * $t )&quot;  | bc -l`
  echo &quot;The amount is $amt&quot;
  power=`expr $n \* $t`
  echo $power
  ci=`echo &quot;scale=2;$P * ( 1 + $r / $n ) ^ $power&quot; | bc`
  echo &quot;The compound intrest is $ci&quot;
  </code></pre>
  <p><strong>(standard_in) 1: syntax error</strong>
  I am getting this error while executing the code. Can anyone help me with this?</p>