DEV Community

Mohammed Salah
Mohammed Salah

Posted on

C++17th code--> [Constant (pi) & iomanpi ] with Precision (51)

#include<iostream>
#include<iomanip>
using namespace std; 
int main()
{
const  double pi=22.0/7.0;
cout<<fixed<<setprecision(51); 
cout<<"\n\t Pi = "<<pi<<endl; 
cin.get();
system("pause"); 
return 0 ; 
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay