void main() {
string a;
cin >> a;
auto b = tostring(getLines(a));
if (b == "2" || b == "4" || b == "6" || b == "8" || b == "0") {
cout << "its number is correct";
}
else {
cout << "its number not correct";
void getLines(string a) {
char last = a.back();
return last;
void tostring(string a) {
return std::to_string(a)
void main() {
string a;
cin >> a;
auto b = tostring(getLines(a));
if (b == "2" || b == "4" || b == "6" || b == "8" || b == "0") {
cout << "its number is correct";
}
else {
cout << "its number not correct";
}
}
void getLines(string a) {
char last = a.back();
return last;
}
void tostring(string a) {
return std::to_string(a)
}