func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     bool flag = 0, flag2 = 0;     long long n, m, c = 0;     cin >> n >> m;     for (long long i = 0; i < n; i++) {       for (long long j = 0; j < m; j++) {         if (i % 2 != 0 && c % 2 == 0 && j != m - 1) {           cout <<  . ;           flag = 1;         } else if (i % 2 != 0 && c % 2 != 0 && j != 0) {           cout <<  . ;           flag2 = 1;         } else           cout <<  # ;       }       cout << endl;       if (flag || flag2) c++;       flag = 0, flag2 = 0;     }     return 0;   }   