Hey there! Congrats on starting with C++. If you don't mind, do you have any other programming experience? I ask because the structure of your program can be optimized a bit and with the way int works it will present any fraction as a whole number(is that intended?)
@keskiverto I can't seem to be able to run the do while loop if I replace char answer with int answer.
@rghrist23 Thanks :), I have done some Java and Javascript, but nothing too fancy. I'd say I'm more comfortable with C++ either way. And yes, that's intented.
Alright cool. If you replace char answer with int answer then the while check should be while (answer == 1). One option I would propose would be to take this code here
int a[];//the array of the user inputted numbers
//make a for loop that divides indexes with each other and puts result into
//a different array, uses a a set of logic rules and can avoid duplicates this way
//either nest the matching formula or make another for loop to compare the arrays
//also consider using std::vector and making your above code a function to help clear up main