Double sided arrow pattern

how to correct my logic for all inputs like it was printing for 7 as input and then increase decrease value according to the pattern.

Mentioned the changes in comments : https://ide.codingblocks.com/s/364653 :slight_smile:

1 Like