hi there i need help finding the sum of a set of even and odd integers in a set of integers like 4567 odds would be 12 evens would be 10 all i get is if i enter 4567 i get 4567 and 0
CODE
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int limit;
int number;
int sumeven=0;
int sumodd=0;
int count =0;
cout<<"Enter limit of numbers "<<endl;
cin>>limit;
cout<<"Enter number"<<endl;
cin>>number;
if (number % 2 ==0)
{
sumeven = count + number;
count++;
}
cout<<"The sum of the even numbers are "<<sumeven<<endl;
cout<<"The sum of the odd numbers are "<<sumodd<<endl;
system("PAUSE");
return EXIT_SUCCESS;
}