#include <stdio.h>
int ProductExists(int arr[], int size, int N) {
for (int i = 0; i < size - 1; i++) {
for (int j = i + 1; j < size; j++) {
if (arr[i] * arr[j] == N) {
return 1;
}
}
}
return 0;
}
int main() {
int arr[] = { 5, 7, 13, 25, 9, 3, 4 };
int N = 21;
int size = sizeof(arr) / sizeof(arr[0]);
ProductExists(arr, size, N) ? puts("Yes") : printf("No");
return 0;
}
/*
run:
Yes
*/