0
How the pi function is used in c++???
pi function comes in math.h heading
2 Antworten
0
we all know PI to be 22/7 which results to 3.142 when rounded up to 3 decimal places.
In your code, just define PI and you are set to go.
example
#define PI 3.142
you can also make it a constant since PI doesnt change.
0
how it works??