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. 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. 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.