## Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

### Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

# Return a Value from a Function Math

Good day,

i am currently boxing as my work out, my question is how do i generate all 6-number combinations of numbers 1,2,3,4,5,6?

Here are six boxing punches (right-handed or orthodox) every aspiring champion must learn.

1. Jab
2. Right Cross or Straight right
3. Left Hook
4. Right Hook
5. Left Uppercut
6. Right Uppercut

how do i right the code so that it will show me all the possible 6-digit combinations for all the punching combinations, but not repeating my calculations would be 6 x 6 = 36 combinations of non-repeating boxing punches, please correct me if i am wrong?

Best regards, Karl Russell

Cameron Childres thank you for your reply sir but i think we do not need to print 1-1-1-1-1-1, or any repeating number in the same sequence i am only looking for a code that will help me generate all 36 combinations because 6x6 is = 36. regards.

Brandon White thank you sir for your clarification.