In my for loop I am getting 10 values,this values return type is double, I want to assign each values(1-10) to individual variable(Ex:d1 is:23.345,d2 is:45.988,d3 is:87.098....etc).Can any one help me how Can I assign this.
Are you trying to dynamically name your variables? i.e. if you have 10 doubles, you want variables named d1 through d10, but if you had 20 you'd want d1 through d20?
The short answer is - you can't. and there is no reason to. giving a variable a name is really only for the author's convenience. If they are being generated dynamically, the author will never see them, so they serve no point.
Seriously, use an array.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors