Simple using For loop

Hi expert,
I'm using csh

Code:
#!/bin/csh
set x = 0

set number = `awk '{array[NR]=$0} END {print array[x];}'`

i want to use for loop to store data to $number repeatly
untill x = 23
How to use c shell for loop?

you can use for loop inside awk only..

awk '{array[NR]=$0} END {for(x=1;x<=23;x++)print array[x];}'

Thks.
But i cant use that way cox
i have 2 file.
FIRST file contain
15
16
17

SECOND file contain
40
46
48

code is :-
set A = `awk '{print $1}' FIRST |awk '{array[NR]=$0} END {print array[x];}'`
set B = `awk '{print $1}' SECOND |awk '{array[NR]=$0} END {print array[x];}'`
set C = `expr $A \* 2 + $B`
echo "$C"

and i wan get outcome is: -
70
78
82

There is another way to edit or nt?