Write statements that would declare a constant PI | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 3

Write statements that would declare a constant PI

show the code

13th Apr 2019, 7:55 AM
Josy Skymax
Josy Skymax - avatar
3 Réponses
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