Hello!
With an ordinary square, everything is simple, but how to put a smaller square into it, this is a problem ... Help please)
#include <iostream> using namespace std; void main() //Вывести на экран квадрат в квадрате { setlocale(LC_ALL, "Russian"); int side; cout << "Введите 1 сторону квадрата = "; cin >> side; for (int i = 1; i <= side ; i++) { for (int j = 1; j <= side * 2; j++) { if (i == 1 || j == side * 2 || j == 1 || i == side ) cout << '*'; else cout << ' '; } for (int j = 1; j <= side; j++) { if ( i == side / 3) cout << '*'; else cout << ' '; } cout << endl; } } I have already started to think of applying the third for with my if, but the condition for this if does not go to my head ... i.e. 21 line is not correct (

side * 2loopside * 2number of iterations? - Grundychar a[80][25]and draw all the shapes on it. And then, in two cycles (and you can, if you think a little and with one, and even without a cycle) draw everything. - KoVadim