I do not understand why a and b do not have the same result. Here is the corresponding code:
public static void Main()
{
double a = 10;
double b = 10;
for (int i=0; i<10; i++)
{
Console.WriteLine("a: " + a);
Console.WriteLine("b: " + b + "\n");
a = a * 1.1;
b = b * (1+(1/10));
}
}
//Ouput
a: 10 b: 10
a: 11 b: 10
a: 12.1 b: 10
a: 13.31 b: 10
a: 14.641 b: 10
a: 16.1051 b: 10
a: 17.71561 b: 10 ....
I hope you can help me.