+ 2
Who can create root calculator on C++?
Addition=a+b Subtraction=a-b Classification=a^b Multiply=a*b Division=a/b Root=?
4 odpowiedzi
+ 2
To do operations on square root use sqrt() in built function from <cmath> header file
+ 3
Anybody can, as long as they have the c++ skills, and you also can...
+ 3
You can go through these codes for your solution
https://code.sololearn.com/cZ1uXLzojVQ9/?ref=app
https://code.sololearn.com/cSAdWgrvQCLN/?ref=apphttps://code.sololearn.com/cuRV2unsc69D/?ref=apphttps://code.sololearn.com/c5R636L1kRVj/?ref=app
0
the ^ operator is not for classification. It is the 'Bitwise Excursive Or'. This will not work the same in order to do classification you can either do a*=a, b-1 times(if b is an integer) or use the pow(a,b) function contained in the <cmath> header file