syntax error near unexpected token `fi'
<p>I am beginner in bash 
I am unable to figure out what is wrong with this code .</p>

<pre><code>#!/bin/bash

j=0
k=1

for i in $1
do
    echo "tile-"+$j +"-" +"$k"
    (($j=$j+1))
    if [ "$j" == "6" ]  then
        $j=0
        (($k=$k+1))
    fi
done
</code></pre>