-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
38 lines (32 loc) · 830 Bytes
/
app.js
File metadata and controls
38 lines (32 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// var num = parseInt(prompt("Enter a number:"));
// var table = '';
// for (var i = 1; i <= 10; i++) {
// table += num + " x " + i + " = " + num * i + "<br>";
// }
// document.write(table);
// for( var i=1; i<100; i++){
// if(i%10 ==0){
// document.write(i + "</br>");
// }
// }
// var j=1;
// while(j<71)
// {
// if(j%7 ==0)
// {
// document.write(j + '<br><br>');
// }
// j++;
// }
// for(var i=1; i<91; i++)
// {
// if(i%9==0)
// {
// document.write('<br><center><h4>' + i);
// }
// }
let num = +prompt("Enter the Number to Print Table of this Number!");
for (let i = 1; i <= 10; i++)
{
document.write( "<br><center>"+ num + ' x ' + i + ' = ' + (num * i)+'<hr>');
}