Hi.

I didn't know should I ask this question here or in VB section, so I decided I should put it here.

I noticed that the same code in C# and in Visual Basic give different result so I'm wondering why is that?

int row;

row = 25 / 7;

textBox1.Text = row.ToString();

-------------------------

result in textbox = 3







Dim row As Integer

row = 25 / 7

TextBox1.Text = row.ToString()

-------------------------

result in textbox = 4

In both cases variable row is declared as integer. Shouldn't that give the same result? Obviously not, but why?