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