Write JavaScript code to display Addition, Subtraction, Multiplication of two numbers (Using Prompt & ParseInt).
<html>
<body>
<h4><center><font face="Algerian">
Addition,Subtraction,Multiplication of two number using Prompt & ParseInt.
</h4></center></font>
<script language="javascript">
A=prompt("Enter
A", "A" )
document.write("A
= ", A )
document.write("<br/>")
B=prompt("Enter
B","B")
document.write("B
=", B)
document.write("<br/>")
C=(parseInt(A)+parseInt(B))
document.write("<br/>")
document.write("
A+B = " , C)
document.write("<br/>")
C=(parseInt(A)-parseInt(B))
document.write("<br/>")
document.write("
A-B = " , C)
document.write("<br/>")
C=(parseInt(A)*parseInt(B))
document.write("<br/>")
document.write("A*B=" , C)
</script>
</body>
</html>
0 Comments
If anyone has Doubts or suggestions please let me know