#include <iostream>
int isEven(int num) {
if ((num & 1) == 0)
return 1;
return 0;
}
signed main() {
int x;
std::cin >> x;
std::cout << isEven(x);
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
int isEven(int num) {
if ((num & 1) == 0)
return 1;
return 0;
}
signed main() {
int x;
std::cin >> x;
std::cout << isEven(x);
return 0;
}