Kinderbijslag

Kinderbijslag (children’s allowance) is a social security payment which is distributed to the parent…

Click here to read the complete problem statement.


If you need help solving this problem, mention your approach and ask specific questions. Please avoid sharing your code and asking the Community to figure out “what’s wrong”.

whats wrong here?

#include<iostream>
using namespace std;
int main()
{
    int i, t, m, p, n;
    double temp;
    cin >> t;

    for(i=1;i<=t;i++)
    {
        cin >> m >> p >> n;
        temp=(p*n)/100.0;
        if(m>=temp)
        {
            cout << "YES" << endl;
        }
        else if(m<temp)
        {
            cout << "NO" << endl;
        }
    }
}

Output should be “Case 1:NO”, not only “NO”.

1 Like