How to find the Tringle is Valid or Not in C:- Code:- #include <stdio.h> int main() { int side_1,side_2,side_3; int a,b,c; printf( "enter the value of sides:" ); scanf( "%d\n %d\n %d" ,&side_1,&side_2,&side_3); a= ((side_1*side_1)==((side_2*side_2)+(side_3*side_3))); b= ((side_2*side_2)==((side_1*side_1)+(side_3*side_3))); c= ((side_3*side_3)==((side_1*side_1)+(side_2*side_2))); if (a || b || c) { printf( "The triangle is valid" ); } else {...
In this blog, many programs are written in the c language. This blog helps to increase our knowledge
Comments
Post a Comment