+ 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.
6 ответов
+ 6
Here is my code.
https://code.sololearn.com/cJtvV38l32ip/#java
+ 4
https://code.sololearn.com/cdZ7fG1Yv11p/?ref=app
Using only loop...
+ 3
+ 2
In python using nested loops
https://code.sololearn.com/cSJ2NoF3V1s7/?ref=app
0
https://www.hackerrank.com/codeskill-1
guys plz participate in codeskill 1. an arena for programmers