Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #define l(i,a,f) for(int i=a;i<f;++i)
- int main()
- {
- char m[97][71] = {' '}; float n = 0.36,r = 10.625; int b,t,e;
- 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]='#';
- 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]='#';
- l(i,0,97){
- e=70;
- while(m[i][e]<'#') --e;
- l(j,0,e) std::cout << m[i][j];
- std::cout << '\n';
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement