Skip to content

#include <iostream> using namespace std; int main() { int num; // User-friendly prompt cout << "===== EVEN OR ODD NUMBER CHECKER =====" << endl; cout << "Enter an integer: "; cin >> num; // Checking if the number is even or odd if (num % 2 == 0) { cout << "\nResult: " << num << " is an EVEN number." << endl; } else { cout << "\nResult: " << num << " is an ODD number." << endl; } // Ending message cout << "======================================" << endl; cout << "Thank you for using this program!" << endl; return 0; } #166

Description

@Sa24-xtrl
No description provided.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions