0

How to use Pi number=3.14. in C language?

i have to calculate this number. r2 = 122 + 52 r = √ (122 + 52) r = √ (144 + 25) r = √ (169) = 13

28th Mar 2018, 5:20 AM
Kunal Kumar
Kunal Kumar - avatar
5 odpowiedzi
+ 4
28th Mar 2018, 6:19 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 2
#define PI 3.14 or: #define _USE_MATH_DEFINES #include <math.h> /* * M_PI = pi * M_PI_2 = pi/2 * M_PI_4 = pi/4 * M_1_PI = 1/pi * M_2_PI = 2/pi * M_2_SQRTPI = 2/sqrt(pi) */
28th Mar 2018, 7:20 AM
Alex
Alex - avatar
0
@Jan Markus i updates question see.
28th Mar 2018, 5:31 AM
Kunal Kumar
Kunal Kumar - avatar
11th Apr 2018, 9:55 PM
Yusuf Tugba Boz
Yusuf Tugba Boz - avatar
- 1
@thanx alex
28th Mar 2018, 1:39 PM
Kunal Kumar
Kunal Kumar - avatar