C LANGUAGE - TO FIND PERFECT RIGHT ANGLED TRIANGLE

// Find Right Angled triangle #include<stdio.h> #include<math.h> int main() { float a,b,c,x,y,z; printf("Enter First side:\n"); scanf("%f",&a); printf("Enter Second side:\n"); scanf("%f",&b); printf("Enter Third side:\n"); scanf("%f",&c); x=sqrt((a*a)+(b*b)); y=sqrt((b*b)+(c*c)); z=sqrt((c*c)+(a*a)); if(c==x||a==y||b==z) { printf("\nRight Triangle"); } else { printf("\nNot Right Triangle"); } return 0; }
Note: Click on copy button to copy the given code and you can paste it in any online compiler to see the result, IF YOU ARE A MOBILE USER THEN DOWNLOAD "CODING C"(Free App) COMPILER FROM GOOGLE PLAY STORE.