I’m trying to figure out how to write a c++ program that first asks the user how many numbers they’d like to input. Then, the user inputs those numbers and the program sums them up and stops once it detects that two of the numbers are even. I’m confused on the logic/code needed to write this. I have a function written so far that correctly puts out the ordinal for the number inputted (23 would be 23rd). But, I don’t know how to go from here.

Thank you!

Source: Windows Questions C++