fork download
  1. x=0
  2. while [ $x -le 10 ]
  3. do
  4. y=[$x*2]
  5. echo "2*$x = $y"
  6. echo " "
  7. x=$(( $x + 1 ))
  8. done
  9.  
Success #stdin #stdout 0.03s 5312KB
stdin
Standard input is empty
stdout
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]