Advertisement
Josif_tepe

Untitled

Sep 1st, 2021
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct tocka {
  5.     double x, y;
  6. };
  7. int main() {
  8.     int n;
  9.     cin >> n;
  10.     tocka niza[n];
  11.    
  12.     for(int i = 0; i < n; i++) {
  13.         cin >> niza[i].x >> niza[i].y;
  14.     }
  15.    
  16.     for(int i = 0; i < n; i++) {
  17.         cout << niza[i].x << " " << niza[i].y << endl;
  18.     }
  19.     return 0;
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement