17 lines
165 B
Bash
17 lines
165 B
Bash
|
while true
|
||
|
do
|
||
|
|
||
|
read userinput
|
||
|
|
||
|
if [ $userinput = "ping" ]
|
||
|
then
|
||
|
echo "pong"
|
||
|
elif [ $userinput = "exit" ]
|
||
|
then
|
||
|
break
|
||
|
else
|
||
|
echo "Nie umiesz grać"
|
||
|
fi
|
||
|
|
||
|
done
|