Yes
It depends on the script language you are using. In the Korn shell, you can say: echo -n "Enter the first number: " read first echo -n "Enter the second number: " read second let third=$first+$second echo The answer is $third
$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"
$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"
2 4 6
Shell problems are programs that can be run to find out information about numbers. The problem can help find an even or odd number, or what the sum of a cube is.
<html> <head><title>Check palindrim or not</title> <script language="javascript"> var no,rem,sum=0,temp; no=prompt("Enter the no from user for check"," "); temp=no; while(no>0) { rem=no%10; sum=sum*10+rem; no=no/10; } if(temp==sum) document.write("The given no is palindrom"); else document.write("The given no is not palindrom") </script> <body> </body> </html>
To add the numbers together is the sum!!!! to add the numbers together is the sum!!!!
Sum means to add numbers together.
The sum of the numbers is 26. The numbers are 12 and 14.
If this question means "in the interval 0 to 16 inclusive, is the sum of the odd numbers the same as the sum of the even numbers ?" then the answer is no. The sum of the even numbers is eight more than the sum of the odd ones.
The sum of two odd numbers is always even; the sum of three odd numbers is always odd; the sum of four odd numbers is always even; the sum of five odd numbers is always odd; etc