Advertisement
rotti321

Dreapta pbinfo

Sep 22nd, 2021
753
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.     int xa,xb,ya,yb;
  7.     cin >> xa >> ya >>xb>>yb;
  8.     if(ya==yb){
  9.         cout << "orizontala";
  10.     }
  11.     else if(xa==xb){
  12.         cout<<"verticala";
  13.     }
  14.     else{
  15.         cout<<"oblica";
  16.     }
  17.    
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement