#include <bits/stdc++.h>
using namespace std;
int main() {
char n;
cin >> n;
int num = n - '0'; // Convert char to int
// Now we can use the modulus operator on the integer value
if(num % 2 == 0){
cout << "CHAN";
} else {
cout << "LE";
}
}
Converting Character to Integer: in the below code snippet, it asks us to give input a [char]. Therefore, simply after that specific character is used in the modulus operation. Because only the modulus operator can run over an integer, it first needs to be converted from a character by changing each element in our digit list into its respective integer value. Int by num = n - '0'; Perform Modulus Operation: Once we have got the integer value of character, perform modulus operation and extract that element which will tell you number is odd or even.