write a shell script for addition of three integer numbers.

Posted By on September 14, 2014


Download PDF
write a shell script for addition, subtraction, multiplication and division of two numbers

Script: –

echo “Enter a:”
read a
echo “Enter b:”
read b
echo “Enter c:”
read c
sum = ‘expr $a + $b’
echo “The sum is $sum”

Output: –

Enter a: 4
Enter b: 5
Enter c: 3
The sum is 12

write a shell script for addition, subtraction, multiplication and division of two numbers

Download PDF

Posted by Akash Kurup

Founder and C.E.O, World4Engineers Educationist and Entrepreneur by passion. Orator and blogger by hobby

Website: http://world4engineers.com