Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- int main() {
- setlocale(LC_ALL, "ru");
- int x;
- cout << "Введите число: ";
- cin >> x;
- if (x % 2 == 0) {
- cout << "Четное число" << endl;
- }
- else {
- cout << "Нечетное число" << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment