Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- float a,b,c;
- int t;
- cin>>a>>b>>c;
- if ((a>0) && (b>0) &&(c>0))
- {
- if ((a+b>c) && (b+c>a) && (c+a>b))
- if (a==b)
- if (b==c)
- t=3;
- else
- t=2;
- else
- if (a==c)
- t=2;
- else
- if (b==c)
- t=2;
- else
- t=1;
- }
- else
- t=0;
- cout<<t;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement