Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int a,b,c;
  6. cout<<"enter the value of a,b and c:"<<endl;
  7. cin>>a>>b>>c;
  8. (a+b+c==180)?cout<<"triangle is valid":cout<<"triangle is not valid";
  9. return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement