What will be the output of the following C++ code? 1. #include <iostream> 2. using namespace std; 3. #define PI 3.14159 4. int main () 5. { 6. float r = 2; 7. float circle; 8. circle = 2 * PI * r; 9. cout << circle; 10. return 0; 11. } a) 12.5664 b) 13.5664 c) 10 d) 15
What will be the output of the following C++ code? 1. #include <iostream> 2. using namespace std; 3. #define PI 3.14159 4. int main () 5. { 6. float r = 2; 7. float circle; 8. circle = 2 * PI * r; 9. cout << circle; 10. return 0; 11. } a) 12.5664 b) 13.5664 c) 10 d) 15
Share
a) 12.5664