Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main(){
- int a = 0, b = 0, c = 0;
- printf("Digite os tres valores A, B e C:\n");
- scanf("%d %d %d", &a, &b, &c);
- if(a < b + c && b < a + c && c < a + b){
- if(a == b && b == c){
- printf("Triangulo equilatero.\n");
- }else if((a == b && b != c) || (a == c && c != b)){
- printf("Triangulo isosceles.\n");
- }else{
- printf("Triangulo escaleno.\n");
- }
- }else{
- printf("Os valores nao compoem triangulo.\n");
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment