Outside of the code I posted below I defined an array fanrp0[1] and fanrp0[2] I did the same for fans 0 through 3. I'm trying to make fstat change and echo each of the fans in two arrays.
for (( f=1; f<=2; f++ ))
do
for (( f2=0; f2<=3; f2++ ))
do
fstat="${(fanrp$f2)[$f]}"
echo $fstat
done
done