Untitled
unknown
plain_text
a year ago
563 B
0
Indexable
Never
#include <iostream> using namespace std; int main() { int a,b; char c[0],d[1]; cout << "Dlinna, shirina: "; cin >> a >> b; cout << "Kontur, zalivka: "; cin >> c >> d; for(int i=0; i < a; i++){ cout << c[0] << " "; } cout << endl; for(int j=0; j < b-2; j++){ cout << c[0] << " "; for(int i=0; i < a-2; i++){ cout << d << " "; } cout << c[0] << " "; cout << endl; } for(int i=0; i < a; i++){ cout << c[0] << " "; } }