12
rated 0 times
[
12]
[
0]
/ answers: 1 / hits: 40959
/ 3 Years ago, tue, november 16, 2021, 4:43:08
Please help me writing a shell programming using if
else
, all possibile code using [[ ]]
, [ ]
, (( ))
.
I tried but it does not work (you can check my previous question Arithmetic binary operators -gt, -lt give error but work in a shell script).
Here is the C version:
int i = 10, n = 20;
if (i < n)
printf("i smaller");
else if (i > n)
printf("n smaller");
else
printf("same");
More From » 11.04