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 = .36;
- int b,t,e;
- l(i,1,54) l(j, i<7?1:ceil(n*i-1.28),(i>47?40:ceil(n*i+21.86))) l(k,0,3) m[j-1+k*29][62-i]='#';
- l(i,-10,11) l(j,9-(floor((sqrt(112.89-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=71;
- while(m[i][--e]<'#');
- l(j,0,e+1) std::cout << m[i][j];
- std::cout << '\n';
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement