+ 14

Challenge: Print this Pattern

If input is 5 the output should be: 1 2 6 3 7 10 4 8 11 13 5 9 12 14 15 If input is 6 the output should be 1 2 7 3 8 12 4 9 13 16 5 10 14 17 19 6 11 15 18 20 21 Good Luck.

10th Aug 2017, 9:04 AM
Kartikey Sahu
Kartikey Sahu - avatar
6 Respostas
13th Aug 2017, 5:20 PM
Mehmet
Mehmet - avatar
10th Aug 2017, 9:47 AM
Corey
Corey - avatar
+ 4
https://code.sololearn.com/cdZ7fG1Yv11p/?ref=app Using only loop...
20th Sep 2017, 6:41 AM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
19th Sep 2017, 2:03 PM
Jose Thomas
Jose Thomas - avatar
20th Sep 2017, 4:44 PM
Kartik
Kartik - avatar
0
https://www.hackerrank.com/codeskill-1 guys plz participate in codeskill 1. an arena for programmers
2nd Feb 2018, 10:04 AM
Jose Thomas
Jose Thomas - avatar