#include <stdio.h>

int main() {
    int A[10], I=0;
    for(int i=0; i<10; i++){
        scanf("%d", &A[i]);
    
    }
    
    int B;   
    scanf("%d", &B);
   
    for(int i=0; i<10; i++){
        if(B==A[i]){
            I=1;
            break;
        }
    }
    
    if(I==1){
        printf("SIM");
    }
    else{
        printf("NAO");
    }
    return 0;
}

Embed on website

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