Infosys Interview Question

Related to SQL Table printing program upto 100