Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main(){
- int n;
- string s="31415926535897932384626433832795028841971693993751058209794459230781640628620899862803482534211706798214808651328230676470938446095505822317253594081284811174502841027019385211095559644622948954930381964428810975665933446128475648233786783165271201909145648566923460348610454326648213393607260249141273724587006606315588174881520920962829254091715364367892590360011330530548820466521384146951941511609433057270365759591953092186117381932611793105118548074462379962749567351885752724891227938183011949";
- while(scanf("%d",&n)!=EOF){
- for(int i=0;i<=n/2;i++)putchar(s[i]);
- putchar('\n');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement