i cant seem to get this code to run and i need to know the output can some one plz help me ?
myinventory = 2;
for (int i = 1; i <= 3; i++)
myinventory[i] = 2*myinventory[i -1];
for (int i = 0; i < myinventory.size(); i++)
cout << myinventory[i]<< " ";
please if u can provide the output that would be great