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