Originally Posted by
ShadowOfBlood
Nvm, I was going about it wrong. I figured it out. Here's what I have:
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int even = 0, odd = 0, dig, num;
cout << "Please enter a list of numbers (ex. - 12345)" << endl;
cin >> num;
while (num > 0)
{
dig = num % 10;
num = num / 10;
if(dig % 2 == 0)
even = even + dig;
else
odd = odd + dig;
}
cout << "The sum of the even integers is: " << even << endl;
cout << "The sum of the odd integers is: " << odd << endl;
return 0;
}
Thanks for the help 
what is quite confusing is the 'num' integer.
You said that you are taking input of a list of integers while you have just asked for a single integer.
I assume that you have taken the input of "list of integers" in a single integer 'num' itself, i.e., you have considered the value of 'num' as a list of integers (digit by digit)

if this is what you have assumed, i think this is a wrong approach. You would have rather used an array.

Think upon it.