Advertisement
yepp

Untitled

Nov 10th, 2013
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.52 KB | None | 0 0
  1.     #include <iostream>
  2. #include <cmath>
  3.  
  4. #define l(i,a,f) for(int i=a;i<f;++i)
  5. int main()
  6. {
  7.     char m[97][71] = {' '}; float n = 0.36,r = 10.625; int b,t,e;
  8.     l(i,1,54) l(j,(i<7 ?  1 : ceil(n*(i+2)-2))-1,(i>47 ? 40 : ceil(n*i+21.86))-1) l(k,0,3) m[j+k*29][62-i]='#';
  9.     l(i,-10,11) l(j,9-floor((sqrt(r*r-i*i)-1)),10) l(k,0,3) m[28+i+k*29][j] = m[10+i+k*29][70-j]='#';
  10.     l(i,0,97){
  11.         e=70;
  12.         while(m[i][e]<'#') --e;
  13.         l(j,0,e) std::cout << m[i][j];
  14.         std::cout << '\n';
  15.     }
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement