I have a problem

This is a discussion on I have a problem within the C Programming forums, part of the General Programming Boards category; English: Say how many diferent numbers can be formed as the result of the product of one, two, or more ...

  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    1

    I have a problem

    English:

    Say how many diferent numbers can be formed as the result of the product of one, two, or more of the next numbers: 5, 22, 91, 455, 2002, 199945, 877758, 438790, 48266900.
    For example: 5 (5), 2002 (22*91), 45374875 (5*455*19945), etc.

    Spanish:

    Decir cuántos números distintos se pueden formar como resultado del producto de uno, dos, o
    más de los siguientes números, sin repetir: 5, 22, 91, 455, 2002, 19945, 87758, 438790,
    48266900.
    Por ejemplo: 5 (5), 2002 (22·91), 45374875 (5·455·19945), etc.

    I think i solved it in python

    Python pastebin - collaborative debugging tool

    But i have no idea how to do it in C. I woul really appreciate your help

  2. #2
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,673
    How many different numbers(possible products)? Isn't it just ΣC(i,9) from i=1 to i=9? ...or something like that, I've forgotten too much of those math classes.
    I used to be an adventurer like you... then I took an arrow to the knee.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help understanding a problem
    By dnguyen1022 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2009, 04:21 PM
  2. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 10:22 AM
  3. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  4. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  5. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21