fork download
  1. #!/bin/bash
  2. x=0
  3. while [ $x -le 10 ]
  4. do
  5. $y=[$x*2]
  6. echo "2*$x = $y"
  7. echo " "
  8. x=$(( $x + 1 ))
  9. done
  10.  
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 =