In: Computer Science
Intro to Linux
Consider the following one-liner;
for value in {____________________} ; do echo $value ; done ; echo
Fill in the blank with the appropriate expression so the command displays the following;
369
Please note that the -n option of echo causes the echo commands to not go to the next line after they display their results. The last echo is just there so that the next shell prompt appears on the line after our displayed result.
ANSWER : HERE IS THE ANSWER FOR YOUR QUESTION:
------------------------------------------------------------------------------------------------------------
CODE:
for i in 3 6
9
do
echo -n "$i"
done
echo ""
----------------------------------------------------------------------------------------------------------------
SNIPPET:
----------------------------------------------------------------------------------------------------------------
OUTPUT:
----------------------------------------------------------------------------------------------------------------
I hope this would help you out.
If you like my answer , please upvote
If you have any doubt, you can provide comment /feedback below the answer
Thanks