NABILISU - Billing Issue
solution-
#include<stdio.h>
int main()
{ int t,k,i;
long int a,b;
scanf("%d",&t);
for(i=1;i<=t;i++)
{
scanf("%ld%ld%d",&a,&b,&k);
if(a>b && a==b+k)
{
printf("Case %d: YES\n",i);
}
else
{
printf("Case %d: NO\n",i);
}
}
}
Comments
Post a Comment