#include void dilution_sequence(double initial_percent, double replacement_percent, int times, double* storage){ storage[0] = initial_percent; for(int i = 1; i <= times; i++){ storage[i] = storage[i-1] * ((100.0 - replacement_percent) / 100.0); } } int main(){ double dilutions[6]; dilution_sequence(50, 90, 5, dilutions); for(int i = 0; i <= 5; i++){ printf("After %d rocks, we have %lf percent antifreeze\n", i, dilutions[i]); } return 0; }