The Corrected Errors in The Code
The Corrected Errors in The Code
#include <iostream>
#include <string>
int main()
for (int i = 0; i < ARR_SIZE; i++) // Loop to enter all sales numbers
cout << "Enter sales for " << name[i] << ": ";
for (int i = 1; i < ARR_SIZE; i++) // Loop through all elements in sales[]
{
cout << "The bestselling pizza is " << bestseller_name << " with the sales of "
cout << "The worst selling pizza is " << worstseller_name << " with the sales of
"
return 0;
Corrections made: