func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n;     scanf( %d , &n);     char a[n][n];     for (int i = 0; i < n; i++)       for (int j = 0; j < n; j++) a[i][j] =  * ;     int begin, end;     begin = end = n / 2;     for (int i = 0; i <= n / 2; i++) {       for (int j = begin; j <= end; j++) a[i][j] =  D ;       begin--;       end++;     }     begin += 2;     end -= 2;     for (int i = n / 2 + 1; i < n; i++) {       for (int j = begin; j <= end; j++) a[i][j] =  D ;       begin++;       end--;     }     for (int i = 0; i < n; i++) {       for (int j = 0; j < n; j++) printf( %c , a[i][j]);       printf(  n );     }     return 0;   }   