$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"
Adding two or more numbers together gives you a sum.
The result of adding two numbers is their sum.
the PRODUCT :)
+ is the symbol for adding two numbers together.It is usually called the plus symbol.
Then you are adding two rational numbers with different signs! No big deal!
Adding two or more numbers together gives you a sum.
The result of adding two numbers is their sum.
a difference
the PRODUCT :)
+ is the symbol for adding two numbers together.It is usually called the plus symbol.
Then you are adding two rational numbers with different signs! No big deal!
$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"
Adding
When adding numbers, the total is the sum. The sum of two odd numbers is even.
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 !
There is no limitation. If you have two odd numbers, you can ALWAYS add them.
no