The line
for( index==0; index<=5; index++)
is not correct because you never initialized index. The general form of the for loop is normally
for (ASSN; TEST; INCR)
ASSN should be an assignment statement containing '='
The line
for( index==0; index<=5; index++)
is not correct because you never initialized index. The general form of the for loop is normally
for (ASSN; TEST; INCR)
ASSN should be an assignment statement containing '='