Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<stdio.h>
- #include<stdlib.h>
- #define LINES 200
- #define SPACE 20
- #define rep(i,a,b) for(int i = a;i < b;i++)
- using namespace std;
- string s;
- int main()
- {
- freopen("KIMMA.txt","w",stdout);
- getline(cin,s);
- rep(i,0,LINES)
- {
- rep(j,0,SPACE*2)
- {
- if(j <= SPACE)
- {
- rep(k,0,j)
- {
- cout<<" ";
- }
- cout << s <<endl;
- }
- else
- {
- rep(k,0,SPACE*2-j)
- {
- cout<<" ";
- }
- cout<<s<<endl;
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement