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

@Sa24-xtrl

Description

@Sa24-xtrl
No description provided.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions