mirror of https://github.com/fengyuhetao/shell.git
12 lines
144 B
Bash
12 lines
144 B
Bash
|
#!/bin/bash
|
||
|
# using double parenthesis
|
||
|
|
||
|
var1=10
|
||
|
|
||
|
if (( $var1 ** 2 > 90))
|
||
|
then
|
||
|
(( var2 = $var1 ** 2))
|
||
|
echo "The square of $var1 if $var2"
|
||
|
fi
|
||
|
|