I have written the code and is trying to fix it to display the values entered into an inventory array. I am really stuck, can someone please see if you can help me out:
#include <iostream>
using std::cout;
using std::endl;
int main()
{
int j;
int n[10] = {12, 45, 23, 89, 56, 23, 12, 44, 77, 54};
for (j = 1; j <= 10; j++)
cout << “Inventory Item # “ << j << “ has “ << n[j] << “ items remaining.” << endl;
return 0;
}
Thanks
Nazma