Beecrowd 1045 Triangle Types solution in C, C++, Python

Beecrowd 1045 Triangle Types solution

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

Beecrowd 1016 Solution in C, Python || Beecrowd 1016 -Distance solution || URI 1016

beecrowd 1016 solution

Question Beecrowd 1016 Solution Solution in C #include<stdio.h> int main() { int a,c; scanf(“%d”,&a); c=2*a; printf(“%d minutos\n”,c); return 0; } Solution in Python a = int(input()) c = 2 * a print(f”{c} minutos”) The Python program reads an integer from the user using the input() method, computes c = 2 * a, and then prints … Read more