x = [ 3 , 4 , 9 , 6 , 2 ] (0..4).each { |i| printf( "x[ %d ] = %d\n" , i , x[ i ] ) }