#! /bin/bash num1=20 num2=5 echo $(( num1 + num2 )) echo $(( num1 - num2 )) echo $(( num1 * num2 )) echo $(( num1 / num2 )) echo $(( num1 % num2 )) echo $(expr $num1 + $num2 ) echo $(expr $num1 - $num2 ) echo $(expr $num1 \* $num2 ) echo $(expr $num1 / $num2 ) echo $(expr $num1 % $num2 )
Shell Scripting Tutorial For Beginners Ten - Perform Arithmetics Operations
Posted by Hold
on January 24, 2017
0 comments:
Post a Comment