Write java script code to display “Addition of two numbers” .
Program:-
<html>
<body bgcolor ="#00ffff">
<h2><center><font
face="Algerian"> <font color = "#800080" >This is addition of two numbers a and b.
</h2></center></font>
<script language="javascript">
var a,b,c
a=10,
b=20, c=a+b
document.write("a=10")
document.write("</br>")
document.write("b=20")
document.write("</br>")
document.write("<h3> addition of two numbers
is a + b = </h3> ", c)
</script>
</body>
</html>
0 Comments
If anyone has Doubts or suggestions please let me know