void mean(int x, int y, int z);
int main()
{
 int a, b, c;
 cout << "정수 세개를 입력하세요 : ";
 cin >> a >> b >> c;
 cout << "결과 : ";
 mean(a, b, c);


 return 0;
}
void mean(int x, int y, int z)
{
 int w;
 w = (x + y + z) / 3;
 cout << (float) w << endl;

 return;
}

 

여기서 메인에서 mean함수 출력할때 실수로 출력하고 싶은데 정수로만 출력되는데요 어떻게 고쳐야 할까요??ㅠㅠ