fork download
  1. #include <stdio.h>
  2. #include <stdbool.h>
  3. int main(void) {
  4. int arr[7]={1,3,2,4,1,2,3};
  5.  
  6. for(int i=0;i<7;i++){
  7. bool check=false;
  8. for(int j=i+1;j<7;j++){
  9. if(arr[i]==arr[j]){
  10. check=true;
  11. }
  12. }
  13. if(check==false) printf("%d",arr[i]);
  14. }
  15.  
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 5296KB
stdin
Standard input is empty
stdout
4123