User Profile

Collapse

Profile Sidebar

Collapse
Junjie
Junjie
Last Activity: Sep 8 '10, 07:22 AM
Joined: Jul 31 '10
Location: Guangzhou,Guangdong,China
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • 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"...
    See more | Go to post

    Leave a comment:


  • 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])
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...