#include <iostream> using namespace std; int de(int a[], int n) { for (int i = 0; i < n; i++) for (int j = i + 1; j < n; j++) if (a[j] == a[i]) { for (int k = j; k < n - 1; k++) a[k] = a[k + 1]; n--; } for ( i = 0; i < n; i++) cout << a[i] << " "; cout << endl; return 0; } int main () { int a[10]; int m = 10; for (int l = 0; l < 10; l++) cin >> a[l]; de(a, m); return 0; }