#include <stdio.h>
void cal(int x, int y, int *sum, int *diff, int *mul, int *mod){
*sum=x+y;
*diff=(x>y)?x-y:y-x;
*mul=x*y;
*mod=x/y;
}
int main() {
int x=15;
int y=4;
int sum,diff,mul,mod;
cal(x,y,&sum,&diff,&mul,&mod);
printf("和は%d,差は%d,積は%d,商は%d\n",sum
,diff
,mul
,mod
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIGNhbChpbnQgeCwgaW50IHksIGludCAqc3VtLCBpbnQgKmRpZmYsIGludCAqbXVsLCBpbnQgKm1vZCl7Cgkqc3VtPXgreTsKCSpkaWZmPSh4PnkpP3gteTp5LXg7CgkqbXVsPXgqeTsKCSptb2Q9eC95Owp9CgppbnQgbWFpbigpIHsKCWludCB4PTE1OwoJaW50IHk9NDsKCWludCBzdW0sZGlmZixtdWwsbW9kOwoJCgljYWwoeCx5LCZzdW0sJmRpZmYsJm11bCwmbW9kKTsKCQoJcHJpbnRmKCLlkozjga8lZCzlt67jga8lZCznqY3jga8lZCzllYbjga8lZFxuIixzdW0sZGlmZixtdWwsbW9kKTsKCXJldHVybiAwOwp9