how to make a calculator in javascript bluej
Answers
Answered by
1
Answer:
I hope this coding will help you
Explanation:
javascript html abcdef
</p><p> var a,b,c,d,e,f,g;</p><p> a=parseInt(prompt("enter value"));</p><p> b=parseInt(prompt("enter another value"));</p><p> c=a+b;</p><p> d=a*b;</p><p> e=a/b;</p><p> f=a-b;</p><p> g=a%b;</p><p> document.write("sum=", c);</p><p> </p><p> document.write("<br><br>product=", d);</p><p> </p><p> document.write("<br><br>division=",e);</p><p> </p><p> document.write("<br><br>subtraction=",f);</p><p> </p><p> document.write("<br><br>percentage=", g);</p><p> </p><p>
hope it helps u
Similar questions
English,
2 months ago
Computer Science,
2 months ago
English,
2 months ago
Physics,
5 months ago
Social Sciences,
5 months ago
English,
10 months ago
English,
10 months ago