Pastebin

Paste #9270: two nnumbers

< previous paste - next paste>

Pasted by shroop

Download View as text

#include <iostream>
using namespace std;

int main()
{
    int n;

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

    if ( n % 2 == 0)
        cout << n << " is even.";
    else
        cout << n << " is odd.";

    return 0;
}

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.