We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Linux Shell
- Bash
- The World of Numbers
- Discussions
The World of Numbers
The World of Numbers
Sort by
recency
|
202 Discussions
|
Please Login in order to post a comment
!/bin/bash
X=5 Y=2
sum=
expr
Y
echo $sumdifference=
expr
Y
echo $differenceproduct=
expr
Y
echo $productquotient=
expr
Y
echo $quotient!/bin/bash
read X read Y
if [[ X -gt 100 || Y -gt 100 || $Y -eq 0 ]]; then exit 1 fi
sum=((X-Y)) product=((X/Y))
echo difference echo quotient
!/bin/bash
read number1 read number2
echo | awk -v n1="number2" '{ print n1 + n2; print n1 - n2; print n1 * n2; print int(n1 / n2); }'
!/bin/bash
read x
read y
echo ((x - y)) echo ((x / y))