#include <stdio.h>

typedef struct {
    int x, y, z;
} Point3D;

typedef struct {
    Point3D min_point;
    Point3D max_point;
} Box3D;

int is_inside(Box3D b, Point3D p) {
    if ((p.x >= b.min_point.x && p.x <= b.max_point.x) &&
        (p.y >= b.min_point.y && p.y <= b.max_point.y) &&
        (p.z >= b.min_point.z && p.z <= b.max_point.z)) {
        return 1;
    } 
        return 0;

}

int main() {
    Point3D p = {3, 4, 2};

    Box3D b = {
        {1, 1, 1},
        {5, 5, 5}
    };

   if(is_inside(b, p) == 1){
       printf("Yes");
   }else{
       printf("No");
   }
}

Embed on website

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