double weekly_sales[weeks][salespersons][days];
double total_weekly_sales[weeks];
Uninitialized.
Edit: this is how you should initialize them:
double weekly_sales[weeks][salespersons][days] = { { { 0.0 } } };
5
solved Why is this NaN
double weekly_sales[weeks][salespersons][days];
double total_weekly_sales[weeks];
Uninitialized.
Edit: this is how you should initialize them:
double weekly_sales[weeks][salespersons][days] = { { { 0.0 } } };
5
solved Why is this NaN