answersLogoWhite

0

$vi sum.sh

echo "enter the 1st no."

read num1

echo "enter the 2nd no."

read num2

sum= 'expr $num1 + $num2'

echo "sum of the numbers is $sum"

User Avatar

Wiki User

13y ago

Still curious? Ask our experts.

Chat with our AI personalities

TaigaTaiga
Every great hero faces trials, and you—yes, YOU—are no exception!
Chat with Taiga
FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran
BeauBeau
You're doing better than you think!
Chat with Beau

Add your answer:

Earn +20 pts
Q: Write a program to calculate the sum of two numbers in unix?
Write your answer...
Submit
Still have questions?
magnify glass
imp