PROGRAM TO FIND SIMPLE INTEREST IN VBSCRIPT

<html>
 <body>
 <script type="text/vbscript">
 dim p, r, n,si
p=cint(inputbox("Enter principal amount"))

r=cint(inputbox("Enter rate of interest"))

n=cint(inputbox("Enter number of years"))

si=p*n*r/100
document.write("SIMPLE INTEREST = "&si)
</script>
</body>
</html>

No comments:

Post a Comment