Untitled

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


int KRUTOST(int a, int b)
{
	int dimon = a;

	for (int i = 1; i < b; i++)
	{
		dimon *= a;
	}

	return dimon;
}

void f(int b, string US)
{
	if (b < 1000)
	{
		cout << "фу, ";
		cout << US;
		cout << "слабак";
	}

	if (b > 1000)
	{
		cout << "ну ты и крутой, ";
		cout << US;
	}
}

int main()
{
	setlocale(LC_ALL, "russian");

	string US;
	cin >> US;
	int pre;
	int fives;
	int shta;
	cin >> pre >> fives >> shta;
	int a = pre+fives;

	int b = KRUTOST(a, fives);

	f(b, US);





}

Leave a Comment