0
Make a program to accept 10 values in int a[10] and print all the unique values.
2 odpowiedzi
0
You can achieve it with data structure called set.
- 1
int a[10];
for(int I=0;i<10;i++){
int b;
std::cin>>b;
a[I]=b;}
//the same to output every single value