Stuck at Learn Bash By Building 5 Programs

I am currently doing Learn bash by building programs challenge.
stuck at the challenge where I have to add if statement to my file
what I have done so far in my file,


# Bingo Number Generator

echo -e "\n~~ Bingo Number Generator ~~\n"

NUMBER=$(( RANDOM % 75 + 1 ))
TEXT="The next number is, "

echo $NUMBER

if (( NUMBER <= 15 ))
   echo $TEXT B:$NUMBER

Still getting an error. Please can anyone tell me what I am doing wrong?

sorry found the problem. I had two echo statements in my code.

1 Like