I keep geeting 0 as an output, although the code is written correctly, does anyone knows the problem? I should get the price after discount, buy somehow I keep getting 0 ad an output. Here is the code:
#include <iostream>
using namespace std;
int main() {
    int ages[5];
    int sum = 0;
    for (int i = 0; i < 5; i++) {
        cin>>ages[i];
    }
    //your code goes here
    int youn = ages[0];
    for(int i = 0; i < 5; i++){
        
         if(ages[i] < youn){
            youn = ages[i];
        } 
        sum += 10;
    }
    int discount = (youn/100)*sum;
    sum -= discount;
    cout<<sum;
    return 0;
}

 
     
    