0

Make a program to accept 10 values in int a[10] and print all the unique values.

3rd Nov 2016, 2:29 PM
rashmi bansal
rashmi bansal - avatar
2 odpowiedzi
0
You can achieve it with data structure called set.
3rd Nov 2016, 3:18 PM
Daniel Oravec
Daniel Oravec - avatar
- 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
3rd Nov 2016, 3:46 PM
zeqiang li
zeqiang li - avatar