Find all possible coordinates of parallelogram | C ++ program to all possible points of a parallelogram ; main method ; coordinates of A ; coordinates of B ; coordinates of C
#include <bits/stdc++.h> NEW_LINE using namespace std ; int main ( ) { int ax = 5 , ay = 0 ; int bx = 1 , by = 1 ; int cx = 2 , cy = 5 ; cout << ax + bx - cx << " , ▁ " << ay + by - cy << endl ; cout << ax + cx - bx << " , ▁ " << ay + cy - by << endl ; cout << cx + bx - ax << " , ▁ " << cy + by - ax << endl ; return 0 ; }