Untitled

 avatar
user_5811307
plain_text
2 months ago
576 B
0
Indexable
Never
#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) << "%";


}
Leave a Comment