Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #include<iostream>
  2. #include<stdio.h>
  3. #include<stdlib.h>
  4. #define LINES 200
  5. #define SPACE 20
  6. #define rep(i,a,b) for(int i = a;i < b;i++)
  7.  
  8. using namespace std;
  9.  
  10. string s;
  11.  
  12. int main()
  13. {
  14. freopen("KIMMA.txt","w",stdout);
  15.  
  16. getline(cin,s);
  17.  
  18. rep(i,0,LINES)
  19. {
  20. rep(j,0,SPACE*2)
  21. {
  22. if(j <= SPACE)
  23. {
  24. rep(k,0,j)
  25. {
  26. cout<<" ";
  27. }
  28. cout << s <<endl;
  29. }
  30. else
  31. {
  32. rep(k,0,SPACE*2-j)
  33. {
  34. cout<<" ";
  35. }
  36.  
  37. cout<<s<<endl;
  38. }
  39. }
  40. }
  41.  
  42. return 0;
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement