Write a complete VB program in a module named SixDays
with a Main
subroutine that prints the following cumulative song as console output.
Use subroutines to capture the structure of the song and to eliminate redundancy.
For example, no complete line of output should be printed in two or more places in your code.
On the 1st day of "Xmas", my true love gave to me
a partridge in a pear tree.
On the 2nd day of "Xmas", my true love gave to me
two turtle doves, and
a partridge in a pear tree.
On the 3rd day of "Xmas", my true love gave to me
three French hens,
two turtle doves, and
a partridge in a pear tree.
On the 4th day of "Xmas", my true love gave to me
four calling birds,
three French hens,
two turtle doves, and
a partridge in a pear tree.
On the 5th day of "Xmas", my true love gave to me
five golden rings,
four calling birds,
three French hens,
two turtle doves, and
a partridge in a pear tree.
On the 6th day of "Xmas", my true love gave to me
six geese a-laying,
five golden rings,
four calling birds,
three French hens,
two turtle doves, and
a partridge in a pear tree.