@RicardoYalico/

5.1

No description

Files
• main.cpp
main.cpp
```1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
```
```#include<iostream>
using namespace std;

char funcionequilatero(int x, int y, int z) {

int equilatero;
equilatero = (x==y && x==z && y==z )*'V'+(x != y && x != z && y != z)*'F'+ (x == y && x != z && y != z)*'F' + (x == z&&x != y&&z != y)*'F' + (y == z&&y != x&&z != x)*'F';
}

char funcionIsos(int a, int b, int c) {

int isosceles;
isosceles = (a == b && a!=c && b!=c)*'V'+(a==c&&a!=b&&c!=b)*'V'+(b==c&&b!=a&&c!=a)*'V' +(a != b && a != c && b != c)*'F'+ (a == b && a == c && b == c)*'F';

}
char funcionEscaleno(int o, int p, int q) {

int escaleno;
escaleno = (o != p && o != q && p != q)*'V'+ (o == p && o == q && p == q)*'F'+ (o == p && o != q && p != q)*'F' + (o == q&&o != p&&q != p)*'F' + (p == q&&p != o&&q != o)*'F';
}

int main(void) {

int l1, l2, l3;

cout << "Ingrese el lado  del trinagulo : ";cin >> l1;
cout << "Ingrese el lado del trinagulo : ";cin >> l2;
cout << "Ingrese el lado del trinagulo : ";cin >> l3;

cout<<endl<<"Isosceles : "<<funcionIsos(l1, l2, l3);
cout << endl << "Equilatero : " << funcionequilatero(l1, l2, l3);
cout << endl << "Escaleno : " << funcionEscaleno(l1, l2, l3);

}```