Write down codes that can run this calculator. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Write down codes that can run this calculator.

Write the program “calculator”. User can input two values (X and Y) and code of operation: 1 – “+” , 2 – “-“, 3 – “div”, 4 – “ ”, 5 – (X+Y)2 , 6 – (X-Y)2, 7 – “*”, 8 – (X+Y)/2, 9 – X+2*X + 2*Y+Y, 10 – x y. Computer output result and question: “Do you want to continue?”. User can answer: “Yes” or “No”.

10th Apr 2018, 10:40 PM
Daniel Osuji
1 Answer
+ 1
I have already made a similar program ..Check that out ....In that you have 5 option including add , subtract etc. To add you need to press 1 ....You will get that when you use it....view my codes and run basic cal
7th Jun 2018, 4:20 AM
Sakaar Sen
Sakaar Sen - avatar