Advertisement
Guest User

Untitled

a guest
Oct 7th, 2015
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int a;
  8.     int b;
  9.     int c;
  10.  
  11.     cin >> a;
  12.     cin >> b;
  13.     cin >> c;
  14.  
  15.     if (a==b==c)
  16.     {
  17.         cout << "Trougao je jendakostranican" << endl;
  18.     }
  19.  
  20.     else if (a==b!=c && b==c!=a && c==a!=b)
  21.     {
  22.         cout << "Trougao je jednakokraki" << endl;
  23.     }
  24.  
  25.     else
  26.     {
  27.         cout << "Trougao je raznostranican" << endl;
  28.     }
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement