0

While of for? for Multiplie

Hi I want to have this as result. ex: 1 x2 = 2 2x2=4 3x2=6 ... Until now I have this. var i=0; while (i<=10) { document.write(i + "x" + "<br />"); i++; }

26th Mar 2019, 2:34 PM
Aziz Bassim
Aziz Bassim - avatar
1 Answer
0
var i=1 while(i<=10){ document.write(i+"x"+2+"="+(i*2)+"<br>") i++; }
26th Mar 2019, 4:31 PM
Akshay Karande