i need to write code for a program that

1. allows user to enter a code
2. will display the amount and quantity
3. the user can enter as many code ids without having to execute the program again


how would i write this?

here my code

Code:
#include <iostream>

using namespace std;

int main()
{	
	//arrays
	int codes[5]        = {22, 64, 74, 85,98};
	int amount[5]     = {345, 650, 240, 250, 215};
	int quantity[5] = {7, 1, 8, 10, 3};

	

	return 0;
}
i just need help not the answer