Created
February 10, 2020 16:00
-
-
Save Rubix982/1b4238bf21e20d25891335cd0418fa27 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
int main(void) | |
{ | |
// Generates the value of the macro PI, without having to rely on an already existing macro in C++ | |
// Since the macro varies from compiler to compiler | |
std::cout << "Value of PI: " << std::setprecision(20) << acos(-1) << std::endl; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment