<!DOCTYPE html> <html> <body>
int n,x,c,d; int main () {cin>>n; d=n%10; while (n>10) {c=n%10; n=n/10; } x=10*c+d; if (x%2==0) cout<<x; else cout<<2*x; return 0; }
</body> </html>
<
<
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)