标签:nbsp 算法 scanf can printf turn == print while
#include <stdio.h>
int main()
{
int a, b, c;
while(scanf("%d%d%d",&a,&b,&c)!=EOF){
if(a>0 && b>0 && c>0 && a+b>c && a+c>b && b+c>a)
{
if (a*a+b*b==c*c||a*a+c*c==b*b||b*b+c*c==a*a)
printf("yes\n");
else
printf("no\n");
}
else
{printf("no\n"); }
}
return 0;
}
标签:nbsp 算法 scanf can printf turn == print while
原文地址:http://www.cnblogs.com/ostrich-sugar/p/7821707.html