rotti321

Dreapta pbinfo

Sep 22nd, 2021
593
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data