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