#include <stdio.h>

int main() {
    int N[10], X, Cont=0;
    for(int i=0; i<10; i++){
        scanf("%d", &N[i]);
    }
    scanf("%d", &X);

    for(int i=0; i<10; i++){
        if(X==N[i]){
            Cont=Cont+1;
        }
    }
    if(Cont!=0){
       printf("%d\n", Cont);
       for(int i=0; i<10; i++){
           if(X==N[i]){
               printf("%d ",i);
         }
       }
    }else{
        printf("Mia x");
    }
    return 0;
}

Embed on website

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