Magic 8-ball: Difference between revisions
→{{header|UNIX Shell}}: style tweaks
(Added Easylang) |
(→{{header|UNIX Shell}}: style tweaks) |
||
Line 2,769:
<syntaxhighlight lang="bash">#!/bin/bash
declare -ra RESPONSES=("It is certain" "It is decidedly so" "Without a doubt"
"Yes definitely" "You may rely on it" "As I see it yes"
"Most likely" "Outlook good" "Signs point to yes" "Yes"
Line 2,781:
find the answers you seek. Type 'quit' to exit.\n\n"
until
done
{{out}}
▲ printf "Response: ${RESPONSES[response_index]}\n\n"
▲done</syntaxhighlight>
<pre>Welcome to 8 ball! Enter your questions using the prompt below to
find the answers you seek. Type 'quit' to exit.
|