Passmark 26 Light Poster

It seems this assignment was set by Professor Chris Szalwinski who runs the Structured Programming course at the School of Computer Studies at Seneca College in Toronto. Maybe someone should E-Mail him, to let him know what his students are doing :-/

Ancient Dragon commented: nice work :) +23
Passmark 26 Light Poster

The definition of the problem is not clear (at least to me).

Given the decimal integer, 523456

Is the answer
1) 3
Becuase there are 3 odd digits (5,3, & 5)

2) 2
Becuase there are 2 unique odd digits (5 & 3)

3) 7
Becuase there are 7 unique odd numbers (5, 3, 523, 52345, 23, 2345 & 345)

4) 261728
Becasue there are 261728 odd numbers before 523456. (1,3,5,7,9,11,13...523455)

Or something else?

invisal commented: Good point you are making +3