use Array: all; int main() { x = [1d]; x0 = x[0]; for( i=0; i<100; i++) { x = x + 1d; x0 = x[0]; } return( toi(x0)); }