0
Please help me with this code it is not working properly.
15 Answers
+ 1
You should not overwrite d in cin and if you use c instead i would use a char instead of double and than you can maybe compare c with the values in d
0
But i dont know how to make multiple Inputs in sololearn but its of course generelly possible
0
I got the idea thanks man.
0
Bro I used character variable and stored multiple values through an array than I simply used array index through if statement.
0
Bro I have already created this calculator through this method but my teacher give me assignment to write this code using arrays
0
You cant use a char in da if condition that should be a Boolean
You only can compare chars in a condition which results into True or False
0
Ok I think I have to use two character variables
0
Thanks to all brother now I understand
As I have just started learning programming so errors are expected more and more.
0
what Mukesh has done is more readable than comparing values in an array with the input variable
0
Now check this out.
Thanks to all for helping me.
https://code.sololearn.com/c4Pp6X9Ngq0e/?ref=app
0
Ok