#include <stdio.h>
#include <string.h>
#include <stdlib.h>

typedef struct Node {
    int n;
    Node* node;
}Node;

int main() {
    int* arr = (int*)malloc(sizeof(int)*10);
    int k;
    int a = 1;

    scanf("%d", &k);

    for(int i=0; i<10; i++)
        scanf("%d", (arr+i));

    for(int i=0; i<10; i++){
        if(arr[i] == k) break;
        a++;
    }

    printf("%d", a);
    
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: