Advertisement
Guest User

Untitled

a guest
Dec 10th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main(){
  4.     int x1, x2, y1, y2;
  5.     cout<<"x1=";cin>>x1;
  6.     cout<<"y1=";cin>>y1;
  7.     cout<<"x2=";cin>>x2;
  8.     cout<<"y2=";cin>>y2;
  9.     if(x1==x2){
  10.         cout<<"Verticala";
  11.     }else{
  12.         if(y1==y2){
  13.             cout<<"Orizontala"
  14.         }else{
  15.             cout<<"Oblica"
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement