0
Write a JavaScript code to print tables of numbers from 1 to 10 ?please help
this should print the multiplication table of number given from 1 to 10
5 odpowiedzi
+ 1
for(let a = 1;a<10;a++){
for(let b = 1;b<10;b++){
document.write(a + "*" + b + " = " + a*b)
}
}
+ 3
Did you mean a <table> table? Or multiplication table? You should specify.
+ 1
Please provide a link to your Code Playground code so we can help you troubleshoot the specific issues you are running into.
The Code Playground should be relatively easy to find in the website version of SoloLearn, but if you are in the app version, it can be accessed via the curly braces, green circle with plus sign to add a new project, then select the project type.
Looking forward.
+ 1
You can follow my code.
https://code.sololearn.com/W8aCuV9A6A91/?ref=app
0
var result=0,mul=1;
do{
for(let i=1;i<10;i++)
{
result=i*mul;
document.write(i+""+mul+"="+result+"<br>");
}
mul++;
while(mul<=10);