10.30 oj night

Being uncomfortable with a program is not because it is difficult, but because I have written this type before but forgot.
It is the output format that the first number represents. (Use loop)
#include <stdio.h>
int main()
{
int a,b,c,n,i;
scanf("%d",&n);
for(i=1;i<=n;i++) //The conditions of the for statement are separated by semicolons
{scanf("%d %d %d",&a,&b,&c);
if(a+b>c&&a+c>b&&b+c>a)
printf("YES \n");
else
printf("NO\n");
}
}

Guess you like

Origin blog.51cto.com/14951163/2545503