mardi 3 octobre 2017

How to create the pattern in python using nested loop?

I am trying to create this pattern but doesn't get any solution. Can anyone help?

1 1 1 1

1 1 1 2

1 1 1 3

1 1 1 4

1 1 1 5

1 1 2 1

1 1 2 2

1 1 2 3

1 1 2 4

1 2 1 1

1 2 1 2

1 2 1 3

1 2 2 1

1 2 2 2

1 2 2 3

1 2 3 1

1 2 3 2

1 2 3 3

1 2 4 1

1 2 4 2

2 1 1 1

2 1 1 2

2 1 1 3

2 1 1 4

2 1 2 1

2 1 2 2

2 1 2 3

2 1 2 4

2 1 2 5

2 2 1 1

2 2 1 2

2 2 1 3

2 2 1 4

2 2 1 5

2 3 1 6

2 3 1 7

2 3 2 1

2 3 2 2

2 3 3 1

Aucun commentaire:

Enregistrer un commentaire