Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
896 B
2
Indexable
Never
#include <iostream>
#include <string>
using namespace std;

struct agroblondinchiki {
	int clas;
	float average_mark;
	int passes;
	int power;
};
int main()
{
	agroblondinchiki keril;
	keril.clas = 8;
	keril.average_mark = 4.5;
	keril.passes = 14;
	keril.power = 190;
	agroblondinchiki aleksandr;
	aleksandr.clas = 5;
	aleksandr.average_mark = 2.2;
	aleksandr.passes = 16;
	aleksandr.power = 115;
	agroblondinchiki vova;
	vova.clas = 6;
	vova.average_mark = 3.4;
	vova.passes = 24;
	vova.power = 145;
	if (keril.power * keril.passes > aleksandr.power * aleksandr.passes && keril.power * keril.passes > vova.power * vova.passes) {
		cout << "keril krutoy";
	}
	if (keril.power * keril.passes < aleksandr.power * aleksandr.passes && aleksandr.power * aleksandr.passes > vova.power * vova.passes) {
		cout << "aleksandr krasava";
	}
	else cout << "vova krut";

}