Your user enters 25 say.

C#

Copy Code

25 / 100 = 0No really - this is integer arithmetic, so it can't work with fractions. Try changing to float earlier:

C#

Copy Code

percentage[x] =(((float)number[x] / 100) * 100);

Or multiply first:

C#

Copy Code

percentage[x] =(float)((number[x] * 100) / 100);

Or throw away the mutiplication and division:

C#

Copy Code

```
percentage[x] =(float)number[x];
```

Or better, use floats throughout:

C#

Copy Code

float[] number = new float[6]; float[] percentage = new float[6]; int x; Console.WriteLine("Enter Number."); for (x = 0; x < 6; x++) { Console.Write("Enter Subject {0} Marks.", x + 1); number[x] = Convert.ToFloat(Console.ReadLine()); } Console.WriteLine("Percentaeg of Marks Is."); for (x = 0; x < 6; x++) { percentage[x] =(number[x] / 100) * 100;But then, the multiplication and division are redundant!