Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- int x1, x2, y1, y2;
- cout<<"x1=";cin>>x1;
- cout<<"y1=";cin>>y1;
- cout<<"x2=";cin>>x2;
- cout<<"y2=";cin>>y2;
- if(x1==x2){
- cout<<"Verticala";
- }else{
- if(y1==y2){
- cout<<"Orizontala"
- }else{
- cout<<"Oblica"
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement