+ 4

Write a code to print the following pattern

1 2 6 3 7 10 4 8 11 13 5 9 12 14 15 i tried it a lot but i can't get ot logic so please tell me its answer

19th Aug 2017, 5:43 AM
Pranav Singh Sehgal
4 Respuestas
+ 2
Why don't you try yourself?
19th Aug 2017, 5:54 AM
Jonas Schröter
Jonas Schröter - avatar
+ 1
Here's a code printing this pattern but not with numbers. Try to modify it. https://code.sololearn.com/cnPriFGF8wj0/?ref=app
19th Aug 2017, 5:57 AM
Jonas Schröter
Jonas Schröter - avatar
+ 1
https://code.sololearn.com/cwiTc3Qa4YxM/?ref=app you can do the exact same thing with Java, translating the for loop
19th Aug 2017, 7:05 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
26th Sep 2017, 3:09 AM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar