JavaScript :- Maths Table (do..while Statement)

Hello Friends..!!

This is JavaScript Practical :- Maths Table (do..while Statement).
Script written in small letter because JavaScript Case Sensitive.

Script:-
<html>
<head>
<title>math table with do statement</title>
</head>
<body>
<script type="text/javascript">
//this is a do statement
var n,c,p;
c=1;
n=parseInt(prompt("enter number"));
document.write("table of  <br />");
do
{
p=n*c;
document.write(n,"*",c,"=",p,"<br />");
c++;
}
while (c <= 10);
document.write("end");
</script>
</body>
</html>
Save the File .html

Output:-

If you have any doubts mention on the Comment Box.

Please follow the my Blog, Share and Comment.

Comments

Popular posts from this blog

What is Website