Is there a way I can create a variable that increments itself. For example:

gosub read_temp
temp_0 = temp_c
gosub read_temp
temp_1 = temp_c
gosub read_temp
temp_2 = temp_c

It would be nice to have something like

for x = 0 to 4
gosub read_temp
temp_[x] = temp_c
next x

Is this possible?