2 4 6 8 10 12 14 16 18 20
<script type="text/javascript"> var a=2; var i=1; while(i<=10){ document.write(a*i+"<br>"); i++; } </script>