#include <stdio.h>

struct Punto {
    int x;
    int y;
};


int main() {
    
    struct Punto p1;
    
    p1.x = 10;
    p1.y = 20;
    
    struct Punto p2 = {30, 40};

    printf("Punto p1:\n");
    printf("  Coordinata X: %d\n", p1.x);
    printf("  Coordinata Y: %d\n", p1.y);

    printf("\nPunto p2:\n");
    printf("  Coordinata X: %d\n", p2.x);
    printf("  Coordinata Y: %d\n", p2.y);

    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: