Untitled
user_5811307
plain_text
2 years ago
576 B
7
Indexable
#include <iostream>
#include <cmath>
#include <string>
#include <vector>
using namespace std;
int sum(float press ,float shanga, float pitorka)
{
int k = pow((press +shanga), pitorka);
if(k > 1)
{
if(k > 10000000)
{
return 100;
}
else if(k >400)
{
return 50;
}
}
else
return 0;
}
int main()
{
string name;
float press ,shanga, pitorka ;
cin >>name >> press >>shanga >>pitorka;
cout <<name<< " are GiGaShad on " << sum(press, shanga, pitorka) << "%";
}
Editor is loading...
Leave a Comment