+ 2

Guys plz help me correct this cpp code as soon as possible.

A simple calculator. You may suggest a better code.

25th Mar 2020, 5:15 PM
Destroyer
Destroyer - avatar
2 Antworten
+ 2
Destroyer The code has a couple of errors but you should ask the user for the operation to be performed as well and in that case you should make use of switch statement. If you just want to take 2 values and perform all operations and display it, then it would be easy and slight modifications in your code can do that.
25th Mar 2020, 5:27 PM
Avinesh
Avinesh - avatar
25th Mar 2020, 5:22 PM
Destroyer
Destroyer - avatar