Hi capablanca
You should look carefully writed by donbock:
The "10 choose 5" combinations of the numbers 0-9 are:
0 and all "9 choose 4" combinations of 1-9; and
1 and all "8 choose 4" combinations of 2-9; and
2 and all "7 choose 4" combinations of 3-9; and
3 and all "6 choose 4" combinations of 4-9; and
4 and all "5 choose 4"...
User Profile
Collapse
-
hi capablanca
this code can do .
...Code:#include <iostream> #include <iomanip> using namespace std; int main() { int x=0 ; int array[10]; cout<<"\n Enter 10 numbers differents: "; for(int i=0; i<10; i++) { cin>>array[i]; if(array[i]==array[i+1])Leave a comment:
No activity results to display
Show More
Leave a comment: