#!/bin/bash read K read S a=$(( 100 - K )) b=`echo "scale=5; $a / 100" | bc` sum=`echo $S / $b | bc` echo $sum