Program Display & ldquo; Command not found & rdquo;

The Code Below showing "Command not found " at line 12.I have tried many way but it did not fix.What is the problem?Can anyone explain?

#!bin/bash
echo "How many number do you want to input?"
read numbers
echo "Give your input seperated by enter"
array=()
for (( i = 0 ; i < $numbers ; i=$i+1 ));
do
    read num;
    array+=($num);
done
for (( j = 0 ; j < $numbers-1 ; j=$j+1 ));
do
    if ["${array[$j]}" -gt "${array[$j+1]}"];
    then
        tempo=${array[$j]};
        array[$j]=${array[$j+1]};
        array[$j+1]=$temp;
    fi
done

for (( i = 0 ; i < $numbers ; i=$i+1 ));
do
    echo ${array[$i]};
done


Remove all spaces in operations like this: j = 0. It must be: j=0

In bash a variable assignment has the syntax: name=[value]. You cannot put unquoted spaces around the = because bash would not interpret this as the assignment you intend. Bash treats most lists of words as a command with parameters.

And add spaces in this line if ["${array[$j]}" -gt "${array[$j+1]}"];. it must be if [ "${array[$j]}" -gt "${array[$j+1]}" ];. You can read about spaces more here: Why should there be a space after '[' and before ']' in Bash?