#include<stdio.h>
int main(){
int a,b,c;
scanf("%i", &a);
scanf("%i", &b);
scanf("%i", &c);
if((a*a+b*b==c*c)||(a*a+c*c==b*b)||(b*b+a*a==c*c)||(b*b+c*c==a*a)||(c*c+a*a==b*b)||(c*c+b*b==a*a))
{printf("1");}
else {printf("0");}
return 0;
}
Thanks
Happy Computing !
int main(){
int a,b,c;
scanf("%i", &a);
scanf("%i", &b);
scanf("%i", &c);
if((a*a+b*b==c*c)||(a*a+c*c==b*b)||(b*b+a*a==c*c)||(b*b+c*c==a*a)||(c*c+a*a==b*b)||(c*c+b*b==a*a))
{printf("1");}
else {printf("0");}
return 0;
}
Thanks
Happy Computing !
No comments:
Post a Comment