Here is a code in which simple arithmetic operation like-Addition , Subtraction, Multiplication, division and reminder are performed--
read a
read b
echo ******************************
echo Addition is= `expr $a + $b`
echo Substraction is= `expr $a - $b`
echo Modulas is= `expr $a % $b`
echo Multiplication is= `expr $a \* $b`
echo divide is= `expr $a / $b`
echo ******************************
read a
read b
echo ******************************
echo Addition is= `expr $a + $b`
echo Substraction is= `expr $a - $b`
echo Modulas is= `expr $a % $b`
echo Multiplication is= `expr $a \* $b`
echo divide is= `expr $a / $b`
echo ******************************
For Further Reading,
- Spring Framework - Example of Database Connectivity with DataSource
- Spring Framework- Execption handling in AOP
- Spring Framework - Example to use @Before annotation with args() in AOP
- Spring Framework-Example to use JoinPoint in AOP
- Simple arithmetic program code in shell programming.
- How to change the ip address in linux
- Hello World !
- Spring Framework - MethodReplacer Example in spring
0 comments:
Post a Comment