Untitled

 avatar
unknown
c_cpp
a year ago
992 B
4
Indexable
#include <iostream>
using namespace std;

int main() {
	setlocale(LC_ALL, "russian");
	int ves, dlina, vysota;
	char color;
	bool govor, beauty, bog;
	cin >> ves >> color >> govor >> dlina >> vysota;
	if (ves >= 10 and color != 98 and color != 114) {
		beauty = 1;
		cout << "Ваш кот красивый!" << endl;
	}
	else {
		cout << "Ваш кот некрасивый!" << endl;
		beauty = 0;
	}
	if (govor = 1 and (dlina * vysota) <= 2000) {
		bog = 1;
		cout << "Ваш кот божественный!" << endl;
	}
	else {
		cout << "Ваш кот небожественный!" << endl;
		bog = 0;
	}
	if (beauty == 1 and bog == 1) {
		cout << "У вас ангелокот!" << endl;
	}
	if (beauty == 0 and bog == 1) {
		cout << "У вас демонокот!" << endl;
	}
	if (beauty == 0 and bog == 0) {
		cout << "У вас дворняга!" << endl;
	}
	if (beauty == 1 and bog == 0) {
		cout << "У вас стиляга!" << endl;
	}
}
Editor is loading...
Leave a Comment