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

12y ago

What else can I help you with?

Related Questions

What do you call the result adding two numbers?

Adding two or more numbers together gives you a sum.


What do you call the result of adding of to numbers?

The result of adding two numbers is their sum.


When adding two numbers you get a sum but when subtracting two numbers what do you get?

a difference


When adding two numbers you get a sum but when MULTIPLYING two numbers what do you get?

the PRODUCT :)


Write a program to calculate the sum of two numbers in unix?

$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"


What is the symbol for adding two numbers together?

+ is the symbol for adding two numbers together.It is usually called the plus symbol.


IF you are adding two rational numbers with different signs?

Then you are adding two rational numbers with different signs! No big deal!


What is it called when you add two numbers two together?

Adding


What is it called when two numbers are added?

When adding numbers, the total is the sum. The sum of two odd numbers is even.


Why does adding two odd numbers give you an even number?

Adding two numbers can never yield an odd number - since all odd numbers are divisible by 1 - and adding 1 to 1 always yields 2 !


What is the limitation of adding two odd numbers?

There is no limitation. If you have two odd numbers, you can ALWAYS add them.


Can adding two odd numbers have a odd sum?

no


What are two even numbers that when added you get odd numbers?

That is not possible; adding two even numbers always gives an even number


What is the result of adding numbers?

The result of adding numbers is called the sum. When you combine two or more numbers through addition, you calculate the total quantity represented by those numbers. For example, adding 3 and 5 results in a sum of 8.


Is the sum of two odd numbers an even numbers?

Yes, when adding two odd numbers together the sum will always be an even number.


How many 2 digit numbers can be formed by adding two 1 digit numbers?

3


Would do you call the result of adding two numbers?

The sum.


What do you call the result of adding two numbers?

The sum.


When adding two numbers and the signs are positive the sum is what?

Positive.


What'd you call the results of adding two numbers?

factors