Advertisement
overridetut

Untitled

Mar 31st, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 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.  
  16.  
  17. else if (a==b && a==c && b==c)
  18. cout<<"Trokut je jednakostranican"<<endl;
  19. else
  20. cout<<"Trokut je jednakokracan"<<endl;
  21.  
  22.  
  23. system("PAUSE");
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement