SOURCE CODE:
echo “Enter the article’s name:“
read name
echo “Enter the price:”
read p
if [ $p –lt 100 ]
then
t=`expr $p \* 10`
r=`expr $t / 100`
n=` expr $p - $r`
else
r=`expr $t / 100`
n=`expr $p - $r`
fi
echo “net Price:” $n
Enter the article’s name:
Drawing book
Enter the price:
125
Net price:100
No comments :
Post a Comment