#include <stdio.h>
int main()
{
float a, b, c;
char ch;
printf("输入a,b,c:");
do {
scanf("%f%f%f", &a, &b, &c);
if (a > 0 && b > 0 && c > 0)
{if (a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b)
{printf("构成直角三角形");}
else
{printf("不构成直角三角形");}}
else
{printf("请输入正数");}
printf("输入Y重新输入数值,N结束程序:");
scanf("%c", &ch);
} while (ch == 'Y');
return 0;
}