write a program to add two numbers in unix

echo "enter value of a"
read a
echo "enter value of b"
read b

total= expr $a + $b
echo "total"

output:-

enter value of a 
10
enter value of b
20
30

 

Post a Comment

If you have any doubts, Please let me know
Thanks!

Previous Post Next Post