Codechef Problems: Protein Diet (LMP1)

 Problem Statement


Solution: 

Given: X: Daily Protein Intake and Y: Daily Protein Requirement 

if ( X >= Y ) -> Means protein intake is Greater than or equals to Protein requirement so it meets the required condition so print YES 

else -> Means protein intake is less than protein requirement so it does not meet the required condition so print NO

Code Solution: 

#include <bits/stdc++.h>
using namespace std;

int main() {
    int x, y; 
    cin >> x >> y; 
    
    if(x >= y){
        cout << "YES" << endl; 
    } else {
        cout << "NO" << endl; 
    }
    
    return 0; 
}

Comments