0
How to create a calculator in C
Explaine me someone please, how can I write a simple calculator in C compliler. I need to input data and to get output. I did addition/substraction, but multiplication/division i can not understand how to do! https://code.sololearn.com/c4gHWXu8HLws/?ref=app
4 Antworten
+ 3
Probably the same way you did addition and subtraction, just change the sign.
+ 2
I just saw your code. Why not use a switch statement?
Here's an example in C++:
https://code.sololearn.com/cfCHxWHE4C87/?ref=app
0
Unfortunately no! When I do the same way, i do not get anything
0
Okay! Just, when I did the similar way in java it worked, but not in C. I thought it will be worked in C as well.