Horje
long pi in c++ Code Example
pi in c++
#define _USE_MATH_DEFINES // must include this!
 
#include <cmath>
#include <iostream>
 
int main() { 
  // M_PI = 3.14159265358979323846;
  std::cout << M_PI << " " << M_E << " " << M_SQRT2 << endl;
  return 0;
}
long pi in c++
typedef long double ld;
const ld pi = 3.1415926535897932384626433832795;




Cpp

Related
cpp map insert Code Example cpp map insert Code Example
Find the biggest element in the array Code Example Find the biggest element in the array Code Example
how to say hello world in c++ Code Example how to say hello world in c++ Code Example
array Code Example array Code Example
how to know datatype of something in c++ Code Example how to know datatype of something in c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9