Beecrowd 1045 Triangle Types solution in C, C++, Python
Beecrowd 1045 Triangle Types solution Question BEE 1045 – Triangle Types Solution in C #include <stdio.h> int main() { double a,b,c,temp,i,j; scanf(“%lf%lf%lf”,&a,&b,&c); if(a<b){temp=a;a=b;b=temp; } if(a<c){temp=a;a=c;c=temp; } if(b<c){temp=b;b=c;c=temp; } i=b*b+c*c; j=a*a; if(a>=b+c){ printf(“NAO FORMA TRIANGULO\n”); } else{ if(j==i){ printf(“TRIANGULO RETANGULO\n”); } if(j>i){ printf(“TRIANGULO OBTUSANGULO\n”); } if(j<i){ printf(“TRIANGULO ACUTANGULO\n”); } if(a==b&&b==c){ printf(“TRIANGULO EQUILATERO\n”); } else if(a==b||b==c||c==a){ printf(“TRIANGULO … Read more