x=0while [ $x -le 10 ]do y=[$x*2] echo "2*$x = $y" echo " " x=$(( $x + 1 ))done
Standard input is empty
2*0 = [0*2] 2*1 = [1*2] 2*2 = [2*2] 2*3 = [3*2] 2*4 = [4*2] 2*5 = [5*2] 2*6 = [6*2] 2*7 = [7*2] 2*8 = [8*2] 2*9 = [9*2] 2*10 = [10*2]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!