- 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â.
1 Antwort
+ 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