Hi Tejaswini Prashant J,
 
You can get current and last 10 financial years list in one of the described way in javascript same can you applie in c#, SQL, etc. but logic might be like following: 
  1.   
Output:
 
2020,2019,2018,2017,2016,2015,2014,2013,2012,2011 
 
For more details:
 
http://jsfiddle.net/santoshshelar27/ychkhcjm/3/
 
Hope, this will help you!