+ 1

Can someone explain to me how the math is done in this code?

It's for school <html> <body> <p id="sh1"></p> <script> var ij; var shuma=0; for (i=1;i<4;i++){ for (j=2; j<4; j++) {shuma =shuma+i*j;} } document.getElementById("sh1").innerHTML = shuma; </script> </body> </html>

15th Jan 2020, 4:47 PM
Fre_An
Fre_An - avatar
1 Antwort
0
Is this your homework?
12th Apr 2024, 2:17 PM
Wilbur Jaywright
Wilbur Jaywright - avatar