int main() { struct Node* root = NULL; int data, key, i;
printf("Enter 6 nodes for the BST:\n");
for (i = 0; i < 6; i++) { scanf("%d", &data); root = insertNode(root, data); }
printf("Enter two elements to search in the BST:\n");
for (i = 0; i < 2; i++) { scanf("%d", &key); if (searchNode(root, key)) { printf("%d is found in the BST.\n", key); } else { printf("%d is not found in the BST.\n", key); } }