int A[10], i, n, k;

printf("Target number: ");
scanf("%d", &k);

for (i = 0; i < n; i++)
{
    if (A[i] = k)
        printf("Output %d", A[i]);

    else if (A[i] != k)
        printf("Output %d", A[i]>k);

    else
        printf("Output %d", A[n]);
}