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