Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
read a; read b;
|
||||
echo "a+b = " `expr $a + $b`
|
||||
echo "a-b = " `expr $a - $b`
|
||||
echo "a*b = " `expr $a \* $b`
|
||||
echo "a/b = " `expr $a / $b` # truncates towards 0
|
||||
echo "a mod b = " `expr $a % $b` # same sign as first operand
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
read a; read b;
|
||||
echo "a+b = $((a+b))"
|
||||
echo "a-b = $((a-b))"
|
||||
echo "a*b = $((a*b))"
|
||||
echo "a/b = $((a/b))" # truncates towards 0
|
||||
echo "a mod b = $((a%b))" # same sign as first operand
|
||||
Loading…
Add table
Add a link
Reference in a new issue