Computer Science, asked by gari2598, 4 months ago


In Shell Scripting, determine the output of the following bash code:

n=22
S=0
x=""
on=$n
while [ $n-gt 0 ]
do
s=$(( $n % 10 ))
n=$($n / 10 )
x=$( echo ${x}${s} )
done
if [ $on -eq $x ].
then
echo "Hello Hacker Earth!"
else
echo "Welcome to HakerEarth!"
fi

1) Hello HackerEarth!

2) Welcome to HackerEarth!

3) Compiles successfully but prints nothing.

4) Compilation error

which option??​

Answers

Answered by swetalina6
6

Answer:

I don't know what is the answer

Explanation:

Mark me as brilliant. And follow me. Iwill give you follow back

Similar questions