Ankit_132

A

Aug 13th, 2023
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     ios_base::sync_with_stdio(false);
  8.     cin.tie(NULL);
  9.     cout.tie(NULL);
  10.  
  11.     string s = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679";
  12.  
  13.     int n;
  14.     cin>>n;
  15.  
  16.     cout<<s.substr(0, n+2)<<"\n";
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment