Differentiating even and odd integers

I've been trying to expand my grasp on c++ lately, and today I decided I was going to see if I could write a program that could tell the difference between odd and even. Typed this up and can't get it to work any ideas and feedback would be very much appreciated! (Still very new to c++ so if any rookie mistakes please have mercy)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  #include <iostream>
using namespace std;
int main()
{
	int numberOne, remainderOne;

	cout << "Enter an integer: ";
	cin >> numberOne;

	remainderOne = numberOne % 2;

	if (remainderOne == 0) 	
		cout << numberOne << " is a even integer " << endl;

	else
		cout << numberOne << " is a odd integer " << endl;

	system("pause")
		return 0;
}
What do you mean by "can't get it to work"?

* Does not compile?
* Does crash?
* Unexpected output?
Sorry that was open ended but correct, I can't get it to compile and open.
missing ; on line 18.
any compiler including the one built into the forums should have said that in your output/errors.

Topic archived. No new replies allowed.