+ 7

[ASSIGNMENT] A HARD PATTERN

make pattern like this /input/ 7 /output/ 5 4 6 3 7 2 1 /input/ 22 /output/ 5 13 21 4 6 12 14 20 22 3 7 11 15 19 2 8 10 16 18 1 9 17 In short, like a sine wave. If possible, make it in c, cpp.

3rd Mar 2018, 9:10 AM
RANDOM1
RANDOM1 - avatar
2 Answers
+ 5
This is a nice challenge. Would you like to make it an assignment in the lesson factory? https://www.sololearn.com/discuss/1082512/?ref=app
3rd Mar 2018, 9:21 AM
Akash Pal
Akash Pal - avatar
+ 3
https://code.sololearn.com/cmq2GWrc988m/?ref=app
7th Mar 2018, 3:36 PM
Abhimanyu Gupta
Abhimanyu Gupta - avatar