+ 2

How to use Maths functions in C++?

16th Apr 2017, 8:37 AM
School Dog
4 odpowiedzi
+ 13
using Math class by including- #include<math.h> Use functions like Math.abs(), Math.sqrt(), Math.sin() etc.
16th Apr 2017, 8:41 AM
Sachin Artani
Sachin Artani - avatar
+ 13
Actually, I got confused with programming languages. But you are right that prefix Math. is invalid but <math.h> and <cmath> both have same functions. reference- http://www.cplusplus.com/reference/cmath/
16th Apr 2017, 10:39 AM
Sachin Artani
Sachin Artani - avatar
0
palindrome using string function
17th Apr 2017, 7:38 AM
Ailyn Arceno
Ailyn Arceno - avatar