Lord
All Mighty
- Joined
- Feb 11, 2011
- Messages
- 15,476
- Reaction score
- 11
- Points
- 31
I want to create a tabler for number 2 in html using javasript for a work,
can somebody help me please?
I already did some progresses:
<html>
<body>
<script type="text/javascript">
var i=0;
for(i=0;i<=20;i++)
{
document.write("="+i*2)
document.write("<br/>")
}
</script>
</body>
</html>
However what appears on screen is:
=0
=2
=4
=6
=8
=10
=12
=14
=16
=18
=20
=22
=24
=26
=28
=30
=32
=34
=36
=38
=40
how can i make it appear:
2x0=0
and so on?
Please i really need some help.
can somebody help me please?
I already did some progresses:
<html>
<body>
<script type="text/javascript">
var i=0;
for(i=0;i<=20;i++)
{
document.write("="+i*2)
document.write("<br/>")
}
</script>
</body>
</html>
However what appears on screen is:
=0
=2
=4
=6
=8
=10
=12
=14
=16
=18
=20
=22
=24
=26
=28
=30
=32
=34
=36
=38
=40
how can i make it appear:
2x0=0
and so on?
Please i really need some help.