Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 months ago
593 B
0
Indexable
Never
#include <iostream>
#include <string>
using namespace std;
#include <iostream>
using namespace std;
double step(int a, int b, int c, double k, double sum)
{
	while (b)
	{
		k *= sum;
		b--;
	}
	return k;
}
double krutost(double a, double b, double c, double k, double sum = 0)
{
	return step(a,b,c,k,sum);
}
int main()
{
	setlocale(LC_ALL, "russian");
	double a, b, c, sum = 0, k = 1;
	string d;
	cin >> a >> b >> c >> d;
	sum = a + c;
	if (krutost(a, b, c, k, sum) > 80) cout << "Ну ты и крутой, " << d;
	else cout << "фу, " << d << ", слабак";
}
Leave a Comment