1.Calculate a bill
BeginnerWith price=250 and qty=4, print the subtotal and the total after adding a 10 percent tip, as whole numbers.
Show hint
$(( )) does integer arithmetic.
Show solution
price=250
qty=4
sub=$((price * qty))
total=$((sub + sub / 10))
echo "Subtotal: $sub"
echo "Total: $total"Subtotal: 1000
Total: 1100