Write a JavaScript code to print tables of numbers from 1 to 10 ?please help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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

11th Sep 2018, 4:50 AM
Bishnu Chourasiya
Bishnu Chourasiya - avatar
5 Answers
+ 1
for(let a = 1;a<10;a++){ for(let b = 1;b<10;b++){ document.write(a + "*" + b + " = " + a*b) } }
11th Sep 2018, 5:14 AM
Αητοιπe
Αητοιπe - avatar
+ 3
Did you mean a <table> table? Or multiplication table? You should specify.
11th Sep 2018, 5:56 AM
Email Not Activated
+ 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.
11th Sep 2018, 5:13 AM
Janning⭐
Janning⭐ - avatar
11th Sep 2018, 5:20 AM
Gulshan Kumar Singh
Gulshan Kumar Singh - avatar
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);
29th Aug 2022, 1:09 PM
253 Wagh Gaurav