#include <stdio.h>
#include <stdlib.h>
int main() {
int n, x;
scanf("%d %d", &n, &x);
int *arr = (int*)malloc(n * sizeof(int));
for(int i=0; i<n; i++){
scanf("%d", &arr[i]);
}
for(int i=0; i<n; i++){
if(arr[i] < x){
printf("%d ", arr[i]);
}
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: