#include <stdio.h>

void countnum(int *arr,int target,int *result){
    *result = 0;

    for (int i = 0;i < 10;i++) {
        if (*arr+i == target) {
            (*result)++;
        }
    }
}

int main() {
    int A[10];
    int target;
    int result;

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

    scanf("%d", &target);

    countnum(A, target, &result);

    printf("%d", result);

    return 0;
}

Embed on website

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