Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
406 B
23
Indexable
Never
#include<stdio.h>
int main()
{
    int n;
    scanf("%d\n",&n);
    int a[n];
    for(int i=0;i<n;i++){
        scanf("%d",&a[i]);
    }
    printf("%d",a[0]);
    int checker=0;
    for(int i=1;i<n;i++){
        for(int j=0;j<i;j++){
            if(a[i]==a[j]){
                checker=1;
            }
        }
        if(checker==0){
            printf(" %d",a[i]);
        }
        checker=0;
    }
}