Skip to content

Instantly share code, notes, and snippets.

@NaokiStark
Last active March 21, 2017 01:05
Show Gist options
  • Save NaokiStark/32ae291e3bd14d6a04f5c226ea32bfad to your computer and use it in GitHub Desktop.
Save NaokiStark/32ae291e3bd14d6a04f5c226ea32bfad to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(){
int LA, LB, LC;
printf("\n1) Ingrese el valor del lado A:");
scanf("%d", &LA);
printf("\n1) Ingrese el valor del lado B:");
scanf("%d", &LB);
printf("\n1) Ingrese el valor del lado C:");
scanf("%d", &LC);
if(LA == LB && LB == LC){
printf("\nEl triangulo es equilatero");
}
else if(LA != LB && LB != LC && LA != LC){
printf("\nEl triangulo es escaleno");
}
else{
printf("\nEl triangulo es escaleno");
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment