Untitled
raw download clone
TEXT
views 68
,
size 199 b
int IncDecRec( int n)
{
    if(n<10) if(n%2==0) return n+1;
    else return n-1;
    else if((n%10)%2==0)
        return IncDecRec(n/10)*10+n%10+1;
    else return IncDecRec(n/10)*10+n%10-1;
}
close fullscreen
Login or Register to edit or fork this paste. It's free.