Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
401 B
0
Indexable
Never
#include <iostream>

using namespace std;

int main() {
	setlocale(LC_ALL, "russian");
	int dom[5];
	int kv = 3, etag = 0;
	for (int i = 0; i < 5; i++) {
		cin >> dom[i];
	}
	for (int i = 0; i < 5; i++) {
		etag = kv * dom[i];
		dom[i] = etag;
	}
	for (int i = 0; i < 5; i++) {
		cout <<"На этаже"<<" "<< i+1<<" "<<"живет"<<" "<< dom[i]<<" "<<"котов."<< endl;
	}

}
Leave a Comment