Write statements that would declare a constant PI | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Write statements that would declare a constant PI

show the code

13th Apr 2019, 7:55 AM
Josy Skymax
Josy Skymax - avatar
3 Answers
0
#define PI 3.1415927
13th Apr 2019, 8:05 AM
Maneren
Maneren - avatar
+ 2
thank you
13th Apr 2019, 8:21 AM
Josy Skymax
Josy Skymax - avatar
+ 2
const double PI = 3.1415927; // e.g. in C++
13th Apr 2019, 1:51 PM
Sonic
Sonic - avatar