+ 2
Can I improve this code to make it shorter and more easy?
I created a code using cpp (c++) for maths of 2 nubmers... https://code.sololearn.com/cuBJxgXA0KTM/?ref=app
2 Réponses
+ 1
Remove the sum, sub, multiply ect varables and do the calculations at the cout e.g. for sum
cout << "Sum = " << a + b << "\n";
instead of making a ‘sum’ variable
I done it for you if you just want to use that:
https://code.sololearn.com/cJbyIMBw49nj/?ref=app
0
https://code.sololearn.com/c8h486GoOrWF/?ref=app