nord vpnnord vpn
Ad

Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 months ago
452 B
0
Indexable
Never
#include <iostream>
#include <string>
#include <cmath>
using namespace std;

//решил
int main() {

	int a;
	int b;

	cin >> b;
	cin >> a;

	for (int i = 0; i < a; i++) {
	
		cout << "#";
	}
	cout << '\n';

	for (int t = 0; t < b - 2; t++) {
		cout << '#';
		
		for (int g = 0; g < a-2; g++) {
			cout << ".";
		
		
		
		}
		cout << '#' << '\n';
	
		
	}
	for (int u = 0; u < a; u++) {

		cout << "#";
	}
	
	
}

nord vpnnord vpn
Ad