Blob Blame Raw
#include <stdio.h>

int main() {
  int a, b, c;
  printf("Enter box size (a b c): ");
  scanf("%d%d%d", &a, &b, &c);

  int x, y;
  printf("Enter hole size (x y):");
  scanf("%d%d", &x, &y);

  int pass = 0;
  if (a < x && b < y) pass = 1;
  if (b < x && c < y) pass = 1;
  if (c < x && a < y) pass = 1;

  if (b < x && a < y) pass = 1;
  if (c < x && b < y) pass = 1;
  if (a < x && c < y) pass = 1;

  /* or coding conditions in other way:
  int pass = (a < x && b < y)
          || (b < x && c < y)
          || (c < x && a < y)
          || (b < x && a < y)
          || (c < x && b < y)
          || (a < x && c < y);
  */

  if (pass)
    printf("Will pass trought\n");
  else
    printf("Box too large\n");
  return 0;
}