I have a simple C program where, I type cast two integers into float and then calculate their division. But, the type casting is resulting in zero. Kindly, a little help would be much appreciated.

'''

```
#include <stdlib.h>
#include <string.h>
#include<ctype.h>

float mean(float sum,float N); 
int main()
{
    int sum = 6;
    int N = 3;
    printf("\nsum: %d\nN: %d",sum,N);
    float m = mean((float)sum,(float)N);
    printf("\nMean: %d",m);
}
return 0;
}

float mean(float sum,float N){
    float m = sum / N;
    return m;
}

```

Here's the Output:
[![Output](https://i.stack.imgur.com/EUsZm.png)](https://i.stack.imgur.com/EUsZm.png)