+ 11
Maths in C++?
How can I use the functions like square root, cos, sin, absolute, power,... and all in C++? Do I have to include anything?
2 Answers
+ 11
Thanks!
0
use class library math, whenever using math functions like
include<math.h>
to use functions just call and use them which ever u want like for square root
int a=100;
int b=sqrt(a);