mirror of
https://github.com/techarkit/shell-scripting-tutorial.git
synced 2025-08-03 01:13:21 +00:00
Rename arithmetic to arithmetic.sh
This commit is contained in:
22
arithmetic.sh
Normal file
22
arithmetic.sh
Normal file
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
#Purpose:Arthmetic operators using expr command
|
||||
#Version:1.0
|
||||
#Created Date: Wed May 9 21:47:04 IST 2018
|
||||
#Modified Date:
|
||||
#website: https://arkit.co.in
|
||||
#Author: Ankam Ravi Kumar
|
||||
# START #
|
||||
echo -e "Enter value: \c"
|
||||
read -r a
|
||||
echo -e "Enter value: \c"
|
||||
read -r b
|
||||
|
||||
echo "addition values `expr $a + $b`"
|
||||
echo "minus values `expr $a - $b`"
|
||||
echo "multiplied by values `expr $a \* $b`"
|
||||
echo "devided by values `expr $a / $b`"
|
||||
echo "remainder values `expr $a % $b`"
|
||||
echo "addition values `expr $a + $b`"
|
||||
|
||||
echo "Completed Sucessfully"
|
||||
# END #
|
Reference in New Issue
Block a user