Advertisement
Guest User

fourth point

a guest
Oct 15th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5.    double x1, x2, x3, x4, x5, y1, y2, y3, y4, y5;
  6.    while(cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3 >> x4 >> y4)
  7.    {
  8.       x5 = (x1 + x4) - x2;
  9.       y5 = (y1 + y4) - y2;
  10.       printf("%lf %lf\n", x5, y5);
  11.    }
  12.    return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement