#include stdio.h practical
#include stdio.h practical
h>
#include <stdlib.h>
// printing array
void print_array(int arr[], int n) {
for (int i = 0; i < n; i++) {
printf("%d ", arr[i]);
}
printf("\n");
}
int main() {
int unsorted_arr[] = {2, 6, 9, 1, 3, 6};
int n = sizeof(unsorted_arr)/sizeof(unsorted_arr[0]);
return 0;
}
int main() {
int arr[] = {10, 25, 30, 45, 50};
int n = sizeof(arr) / sizeof(arr[0]);
int target= 10;
if (result != -1) {
printf("Element %d found at index %d.\n", target, result);
} else {
printf("Element %d not found in the array.\n", target);
}
return 0;
}