• + 0 comments

    include

    void update(int *a,int *b) { // Complete this function
    *a = *a + *b; if (a-2(*b) <0){ *b = (a - 2(b))(-1); }else{ *b = a - 2(*b); } }

    int main() { int a, b; int *pa = &a, *pb = &b;

    scanf("%d %d", &a, &b);
    update(pa, pb);
    printf("%d\n%d", a, b);
    
    return 0;
    

    }