
Zinabnev
5 год назад
Используя оператор вывода, постройте след. рисунки из символов. ЯзыкC ++. Заранее огромное спасибо)

ОТВЕТЫ

Mefodij
Oct 24, 2020
//Я сделаль
#include <bits/stdc++.h>
using namespace std;
int main()
{
cout << " 1 n";
cout << "------n";
cout << " M n";
cout << " MMM n";
cout << "MMMMMn";
cout << " M M n";
cout << " MMM n";
cout << "------n";
cout << " 2 n";
cout << "------n";
cout << "M n";
cout << "MM n";
cout << "MMMMMMn";
cout << " MMn";
cout << " Mn";
cout << "------n";
cout << " 3 n";
cout << "------n";
cout << "M Mn";
cout << " M M n";
cout << " MMMMM n";
cout << " M M M n";
cout << " MMMMM n";
cout << "------n";
cout << " 4 n";
cout << "------n";
cout << " Mn";
cout << " MMn";
cout << " MMMn";
cout << " MMMMMn";
cout << "MMMMMMMn";
cout << "------n";
cout << " 5 n";
cout << "------n";
cout << "M Mn";
cout << "MM MMn";
cout << "MMMMMn";
cout << "MM MMn";
cout << "M Mn";
}
#include <bits/stdc++.h>
using namespace std;
int main()
{
cout << " 1 n";
cout << "------n";
cout << " M n";
cout << " MMM n";
cout << "MMMMMn";
cout << " M M n";
cout << " MMM n";
cout << "------n";
cout << " 2 n";
cout << "------n";
cout << "M n";
cout << "MM n";
cout << "MMMMMMn";
cout << " MMn";
cout << " Mn";
cout << "------n";
cout << " 3 n";
cout << "------n";
cout << "M Mn";
cout << " M M n";
cout << " MMMMM n";
cout << " M M M n";
cout << " MMMMM n";
cout << "------n";
cout << " 4 n";
cout << "------n";
cout << " Mn";
cout << " MMn";
cout << " MMMn";
cout << " MMMMMn";
cout << "MMMMMMMn";
cout << "------n";
cout << " 5 n";
cout << "------n";
cout << "M Mn";
cout << "MM MMn";
cout << "MMMMMn";
cout << "MM MMn";
cout << "M Mn";
}
690
Смежные вопросы: