Chef gives Party | Problem - 15 | Beginner level | C language | CodeChef
Link to the problem statement: https://www.codechef.com/submit-v2/PARTY2
Solution:
#include <stdio.h>
int main(void) {
int t, n, x, k, i;
scanf("%d", &t);
for(i=0;i<t;i++)
{
scanf("%d %d %d", &n, &x, &k);
x = n * x;
if(k >= x)
printf("YES\n");
else
printf("NO\n");
}
return 0;
}
Hope this will help you, if you want anything else leave a comment.
Thank you
Comments
Post a Comment