#include <stdio.h>
#include <math.h>

typedef struct {
	float x;
	float y;
} t_punt;

typedef struct {
	t_punt c;
	float r;
} t_cercle;

int main() {
	t_cercle c;
	t_punt p;
	float d;

	printf(" Intro punt [x y]: ");
	scanf("%f %f", &p.x, &p.y);
	printf(" Intro centre cercle i radi [x y r]: ");
	scanf("%f %f %f", &c.c.x, &c.c.y, &c.r);
	d = sqrt(pow(c.c.x-p.x, 2) + pow(c.c.y-p.y, 2));
	if (d == c.r) {
		printf("En el limite.\n");
	} else if (d < c.r) { 
		printf("Dins.\n");
	} else {
		printf("Fora");
	}
}

