Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <cmath>
- using namespace std;
- int main()
- {
- const int sor = 99;
- const int oszlop = 71;
- bool mat[sor][oszlop] = {false, false};
- double m = 0.36;
- for (int i = 1; i < 54; i++) {
- int halso = ceil(m*(i+2)-2);
- if (i < 7) {
- halso = 1;
- }
- int hfelso = ceil(m*(i-14)+23-0.1+4);
- if (i > 47) {
- hfelso = 40;
- }
- for (int j = halso; j < hfelso; j++) {
- mat[j-1][62-i] = true;
- }
- }
- double r = 10.625; //85/8
- for (int i = -10; i <= 10; i++) {
- int hfelso = floor((sqrt(pow(r,2)-pow(i,2))-1)*1);
- for (int j = 9-hfelso; j <= 9; j++) {
- mat[28+i][j] = true;
- mat[10+i][61+(9-j)] = true;
- }
- }
- for (auto i = 0; i < 45; i++) {
- for (auto j = 0; j < oszlop; j++) {
- if (mat[i][j]) {
- cout << "#";
- } else {
- cout << " ";
- }
- }
- cout << endl;
- }
- cout<<"lolol";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement