Advertisement
overridetut

Untitled

Mar 31st, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3.  
  4. using namespace std;
  5. int main (){
  6. int a,b,c;
  7. cout<<"unesite stranicu a: ";
  8. cin>>a;
  9. cout<<"unesite stranicu b: ";
  10. cin>>b;
  11. cout<<"unesite stranicu c: ";
  12. cin>>c;
  13. if(a!=b && a!=c && b!=c )
  14. cout<<"Trokut je raznostranican!"<<endl;
  15. else if (a==b || b==c || c==a)
  16. cout<<"Trokut je jednakokracan!"<<endl;
  17. else if (a==b && a==c && b==c)
  18. cout<<"Trokut je jednakostranican"<<endl;
  19.  
  20.  
  21. system("PAUSE");
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement