Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <math.h>
- using namespace std;
- int main()
- {
- int a, b, c;
- cout<<"Informe tres Numeros Inteiros: \n";
- cin>> a>>b>>c;
- if (a > b+c || b > a+c || c > a+b){
- return 0;
- }
- if (a == b && a == c && b == c){
- cout<<"O triangulo eh equilatero";
- }else{
- if (a == b || a == c || b == c){
- cout<<"O triangulo eh isoceles";
- }else{
- cout<<"O triangulo eh escaleno";
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement