%{
#include <stdio.h>
%}
%%
[0-9]*[02468] { printf
("Even
Number: %s\n", yytext); } [0-9]*[13579] { printf
("Odd
Number: %s\n", yytext); } [ \t\n]+ ; // Ignore spaces, tabs, and newlines
. ; // Ignore other characters
%%
int main() {
printf("Enter numbers:\n");
yylex();
return 0;
}
JXsKI2luY2x1ZGUgPHN0ZGlvLmg+CiV9CgolJQpbMC05XSpbMDI0NjhdICAgIHsgcHJpbnRmKCJFdmVuIE51bWJlcjogJXNcbiIsIHl5dGV4dCk7IH0KWzAtOV0qWzEzNTc5XSAgICB7IHByaW50ZigiT2RkIE51bWJlcjogJXNcbiIsIHl5dGV4dCk7IH0KWyBcdFxuXSsgICAgICAgICA7ICAvLyBJZ25vcmUgc3BhY2VzLCB0YWJzLCBhbmQgbmV3bGluZXMKLiAgICAgICAgICAgICAgICA7ICAvLyBJZ25vcmUgb3RoZXIgY2hhcmFjdGVycwolJQoKaW50IG1haW4oKSB7CiAgICBwcmludGYoIkVudGVyIG51bWJlcnM6XG4iKTsKICAgIHl5bGV4KCk7CiAgICByZXR1cm4gMDsKfQo=