Last active
March 21, 2017 01:05
-
-
Save NaokiStark/32ae291e3bd14d6a04f5c226ea32bfad to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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