Computer Science, asked by rudromar, 5 months ago

how to make a calculator in javascript bluej

Answers

Answered by aryasugur
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