-
Notifications
You must be signed in to change notification settings - Fork 25
Issues: open-wc/create
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Author
Label
Projects
Milestones
Assignee
Sort
Issues list
#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
opened Mar 2, 2025 by
Sa24-xtrl
ProTip!
Mix and match filters to narrow down what you’re looking for.