Write a Shell Script to Calculate Percentage of marks of a student appearing for five subjects in a course
Solution:
echo "Enter the marks of the student"
read m1 m2 m3 m4 m5
per=`echo \($m1 + $m2 + $m3 + $m4 + $m5\) /5|bc`
echo Percentage is $per
Execution:
No comments:
Post a Comment