combinations for numbers 0 to 40 -


I would like to know all possible combinations from 0-40 in sets of 2. For example:

1/1 - 1/2 - 1/3 - 1/4 - 1/5 - 1/6 - 1/7 - 1/8 - 1/9 - 1/10

Cheers from all 40 and all possible combinations

< P> in Hascale:

  [(x, y) | X and LT; - [1..40], Y & LT; - [1..40]]  

In other languages, you should probably see the loops: (this is C #)

  Tupal and lieutenant; Int, int & gt; [,] Things = New Tuple & lt; Int, int & gt; [40,40]; For (int i = 0; i & lt; 40; i ++) {for (int j = 0; j & lt; 40; j ++) {Things [i, j] = tuple Composition (i + 1, j + 1); }}  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -