syntax of c shell

i have this program in bash shell:

#!/bin/bash
array=(20 20 20 20 20)
i=0
j=0
awk '/%/ {print $3}' try.txt|
while (read s)
arr[$i]=$s
i=`expr $i + 1`
echo "$i"
end

how can i convert this into c shell?

That's not the way to do it in bash:

while read s; do

Why are you using an external command for integer arithmetic in bash?

i=$(( $i + 1 ))

Don't.

Csh Programming Considered Harmful
Top Ten Reasons not to use the C shell
C shell problems