# Can't initialize with this fraction

I can't get variable "dis" to initialize with an expression that includes a fraction. The output for the "dis" variable is "0" other than when I replace the expression with a constant. Any insight would be greatly appreciated. Code: #include <iostream> using namespace std; double getDis(int var) { double dis; dis = (50/100)*var; return dis; } int main() { int ages[5]; for (int i = 0; i < 5; ++i) { cin >> ages[i]; } //your code goes here double min {ages[0]}; for (int i = 1; i < 5; i++) { if (ages[i] < min) min = ages[i]; } //cout << "min = " << min << endl; double dis{getDis(min)}; //dis = (50/100)*min; double cost {50-dis}; cout << cost; return 0; }