Apples and Oranges | Problem - 14 | Beginner level | C language | CodeChef

Link to the problem statement: https://www.codechef.com/submit-v2/APPLORNG

Solution: 

#include <stdio.h>

int main(void) {
int x, a, b, t;
scanf("%d %d %d", &x, &a, &b);
t = a + b;
if( x >= t )
printf("YES");
else
printf("NO");
return 0;
}


Hope this will help you, if you want anything else leave a comment.

Thank you

Comments

Popular posts from this blog

Roller Coaster | Problem - 8 | Beginner level | C language | CodeChef

The Cheaper Cab | Problem - 18 | Beginner level | C language | CodeChef