VBSCRIPT PROGRAM FOR FINDING SUM,CUBE,SQUARE,COMPLIMENT (WITHOUT TABLE TAG)

<html>
<head>
<title>PROGRAM TO PRINT SQUARE,CUBE,SQUARE ROOR ,COMPLIMENT OF THE NUMBER USING VBSCRIPT</title>
</head>
<body>
<script language="vbscript">
dim n,i,j,k,l,c
n=InputBox("How many terms you want?")
document.write("<pre>"& "i      " & "i*i      " & " i*i*i     " & "SQRT      " &"COMPLIMENT"&"</pre>"&"<br>")
for i=1 to n
j= i*i
k=i*i*i
l=Round(sqr(i),2)
c=(-i)
Document.write("<pre>"&i &"     "& j &"          "&k&"          "&l&"          "&c&"<br>")
next
</script>
</body>
<html>

No comments:

Post a Comment