Here's the code:
static void Main(string[] args)
{
int xd2 = 5;
for (double xd = (double)xd2; xd <= 6; xd += 0.01)
{
Console.WriteLine(xd);
}
}
and here's the output:
I want to keep on adding 0.01 (as You can see on the screen, sometimes it happens to add 0.99999) Thanks