Untitled
raw download clone
TEXT
views 32
,
size 235 b
int cifmaxpar(int n)
{
    if(n<=9)
    {
        if(n%2==0) return n;
        else return -1;
    }
    else
    {
        int c=cifmaxpar(n/10);
        if(n%10>c&&(n%10)%2==0) return n%10;
        else return c;
    }
}
close fullscreen
Login or Register to edit or fork this paste. It's free.