Need VB program to spit out different cominations of Y and N



Hello to all out there,
I need some help for some testing: I have 5 categories that could
either be a Yes or No. The order isn't important so it can be any
combinations of Y OR N for 1 set. I used the combination formula to
figure out that I have 45 different combinations:

n!/(r!(n-r)!)----->10!/8!2!------>45

How can i in vb.net display all 45 combinations using the text Y and
N?

Example:
1:YYYYY
2:YNNNN
3:YYNNN
4 . . . . .
and so on.

Your help is greatly appreciated.

.