All' inizio di prog II ho un problema,data 1 strutture punto e una struttura rettangolo come si fa a fargli calcolare l'area,posto il codice ovviamente non completo

#include <stdio.h>

main(){

struct point {
int x;
int y;
};
struct point p;

printf("\nInserire x: ");
scanf("%d", &p.x);
printf("\nInserire y: ");
scanf("%d", &p.y);

printf("x e' %d\ny e' %d",p.x,p.y);

struct rect {
struct point pt1;
struct point pt2;
};
struct rect r;

}


Grazie in anticipo