#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=25;
int y=5;
int sum,diff,mul,mod;
cal(x,y,&sum,&diff,&mul,&mod);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgoKdm9pZCBjYWwoaW50IHgsaW50IHksaW50ICpzdW0saW50ICpkaWZmLGludCAqbXVsLGludCAqbW9kKXsKCSpzdW09eCArIHk7CgkgaWYgKHggPiB5KSB7CiAgICAgICAgKmRpZmYgPSB4IC0geTsKICAgIH0gZWxzZSB7CiAgICAgICAgKmRpZmYgPSB5IC0geDsKICAgIH0KCgkqbXVsPXggKiB5OwoJKm1vZD14IC8geTsKfQoKaW50IG1haW4odm9pZCkgewoJaW50IHg9MjU7CglpbnQgeT01OwoJaW50IHN1bSxkaWZmLG11bCxtb2Q7CgkKCWNhbCh4LHksJnN1bSwmZGlmZiwmbXVsLCZtb2QpOwoJCglwcmludGYoIiVkXG4iLHN1bSk7CglwcmludGYoIiVkXG4iLGRpZmYpOwoJcHJpbnRmKCIlZFxuIixtdWwpOwoJcHJpbnRmKCIlZFxuIixtb2QpOwoJCgkKCQoJcmV0dXJuIDA7CgkKfQ==