How we can create a calculator | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

How we can create a calculator

Do

27th Jun 2019, 7:46 AM
Vaishnav Gotwar
Vaishnav Gotwar - avatar
2 Answers
+ 5
First you would need to make input statements. Secondary you would need to make the program to handle the input. Then you can use the handled input to perform what you want, calculations, etc.
27th Jun 2019, 10:44 AM
Seb TheS
Seb TheS - avatar
0
alert(eval(prompt()))
27th Jun 2019, 8:19 AM
Airree
Airree - avatar