Discovering for loop

This program ascending from 1 to 30 and descending from 30 to 1