int n,r n=in.nextInt(); while(n>0) { r=n%10; n=n%10; } if(n%2==0)
Java
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)