#include <stdio.h>
int main(void) {
int x,y,a,b,c,d;
cal(x,y,&a,&b,&c,&d);
printf("sum:%d,diff*:%d,mul:%d,mod:%d",a
,b
,c
,d
); return 0;
}
void cal(int x,int y,int *sum,int *diff,int *mul, int *mod){
*sum = x+y;
*diff= x-y;
*mul = x*y;
*mod = x/y;
if(*diff<0){
*diff=-*diff;
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CglpbnQgeCx5LGEsYixjLGQ7CglzY2FuZigiJWQiLCZ4KTsKCXNjYW5mKCIlZCIsJnkpOwoJY2FsKHgseSwmYSwmYiwmYywmZCk7CglwcmludGYoInN1bTolZCxkaWZmKjolZCxtdWw6JWQsbW9kOiVkIixhLGIsYyxkKTsKCXJldHVybiAwOwp9CnZvaWQgY2FsKGludCB4LGludCB5LGludCAqc3VtLGludCAqZGlmZixpbnQgKm11bCwgaW50ICptb2QpewoJKnN1bSA9IHgreTsgICAgICAgICAgIAogICAgKmRpZmY9IHgteTsgICAgICAKICAgICptdWwgPSB4Knk7ICAgICAgICAgICAgCiAgICAqbW9kID0geC95OyAgIAoJaWYoKmRpZmY8MCl7CgkJKmRpZmY9LSpkaWZmOwoJfQp9Cg==