#include <stdio.h>
void cal (int x, int y, int *sum,int *diff,int *mul,int *mod){
*sum=x+y;//和
if(x>y){
*diff=x-y;
}else{
*diff=y-x;
}//差
*mul=x*y;//積
*mod=x/y;//商
}
int main(void) {
int x,y,sum,diff,mul,mod;
x=10;
y=3;
cal(x,y,&sum,&diff,&mul,&mod);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIGNhbCAoaW50IHgsIGludCB5LCBpbnQgKnN1bSxpbnQgKmRpZmYsaW50ICptdWwsaW50ICptb2QpewoJKnN1bT14K3k7Ly/lkowKCQoJaWYoeD55KXsKCQkqZGlmZj14LXk7Cgl9ZWxzZXsKCQkqZGlmZj15LXg7Cgl9Ly/lt64KCQoJKm11bD14Knk7Ly/nqY0KCQoJKm1vZD14L3k7Ly/llYYKfQppbnQgbWFpbih2b2lkKSB7CglpbnQgeCx5LHN1bSxkaWZmLG11bCxtb2Q7CgkKCXg9MTA7Cgl5PTM7CgljYWwoeCx5LCZzdW0sJmRpZmYsJm11bCwmbW9kKTsKCXByaW50Zigi5ZKMOiAlZFxuIixzdW0pOwoJcHJpbnRmKCLlt646ICVkXG4iLGRpZmYpOwoJcHJpbnRmKCLnqY06ICVkXG4iLG11bCk7CglwcmludGYoIuWVhjogJWRcbiIsbW9kKTsKCXJldHVybiAwOwp9Cg==