c shell instead of bash

(reposting this with a better title)

Cool. I played with scripts at home over the weekend. Come to find out not working on other shells. I have linux/bash at home, but now I'm trying on Solaris csh.

How would I write the following script for Solaris C shell?
----------

#!/bin/bash
NBR=231
for ((i = 0; i < $NBR; i++ ))
do
printf "0 | 0 | $i |key$i$i |\n" >> printi.txt
done
exit

----------

Ok maybe I should just search it myself, but asking this way is so much lazier and faster! :slight_smile:
thank you so much