0
3.6kviews
Write a Java script to write out the multiplication table for the no. 5 from 1 to 20 using while loop.

Mumbai University > Information Technology > Sem 4 > Web Programming

Marks: 10M

Year: May 2015

1 Answer
0
7views
<html>
<head>
<script language="javascript">
// Use single-spaced text for Multiplication table
document.write("<h3 align='Center'>Multiplication Table</h3>");
document.write("<CENTER><BLOCKQUOTE><STRONG><PRE><FONT     COLOR='000080'>")
var i, j, total; // global variables
while ( i< = 5){
for (j = 1; j < 20; j++) {
total = i * j;
total = " " + total 
         ///add space …

Create a free account to keep reading this post.

and 5 others joined a min ago.

Please log in to add an answer.