Print this Pattern. here n indicates number of rows
N = 6 21 20 11 19 12 10 18 13 9 4 17 14 8 5 3 16 15 7 6 2 1
I am not able to find the logic and code What method should be used? Also the difference between elements in not constant
Aucun commentaire:
Enregistrer un commentaire