+ 2

Who can create root calculator on C++?

Addition=a+b Subtraction=a-b Classification=a^b Multiply=a*b Division=a/b Root=?

21st Mar 2020, 4:01 AM
Suhayli Tuev
Suhayli Tuev - avatar
4 RĂ©ponses
+ 2
To do operations on square root use sqrt() in built function from <cmath> header file
21st Mar 2020, 6:56 AM
Nandan
Nandan - avatar
+ 3
Anybody can, as long as they have the c++ skills, and you also can...
21st Mar 2020, 4:04 AM
Alfred Juma
Alfred Juma - avatar
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
21st Mar 2020, 11:01 AM
xaralampis_
xaralampis_ - avatar