Question: I am trying to divide two numbers from an integer(out of a array). The problem is that array must be integers! And I am trying to show a percentage. And as you all know C rounds down so all my answers are zero.

```
float response;
float response1= a[0][1];
float response2= a[0][0];;
response = response1/response2*100 ;

```

This is my solution. Any good idea's on how to improve it ?

Answer: 
You could cast the values:

```
response = (float)(a[0][1]) / (float)(a[0][0]) * 100

```

This accomplishes the same thing as your explicitly introduced variables (and if you need an intergral response, you can wrap this in another layer of casting).
Try the following

```
response = ( float )a[0][1]/a[0][0]*100 ;

```

In this case there is no need to create intermediate float variables.