#include <stdio.h>
void cal(int x, int y, int*sum, int *diff, int *mul, int *mod);
int main(void) {
int n1,n2,su,di,mu,mo;
cal(n1,n2,&su,&di,&mu,&mo);
printf("sum:%d diff:%d mul:%d mod:%d\n",su
,di
,mu
,mo
); return 0;
}
void cal(int x, int y, int*sum, int *diff, int *mul, int *mod){
*sum=x+ y;
*diff=x - y;
*mul=x * y;
*mod=x / y;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CnZvaWQgY2FsKGludCB4LCBpbnQgeSwgaW50KnN1bSwgaW50ICpkaWZmLCBpbnQgKm11bCwgaW50ICptb2QpOwoKaW50IG1haW4odm9pZCkgewoJaW50IG4xLG4yLHN1LGRpLG11LG1vOwoJcHJpbnRmKCJuMTogbjI6Iik7CglzY2FuZigiJWQgJWQiLCZuMSwmbjIpOwoJY2FsKG4xLG4yLCZzdSwmZGksJm11LCZtbyk7CglwcmludGYoInN1bTolZCBkaWZmOiVkIG11bDolZCBtb2Q6JWRcbiIsc3UsZGksbXUsbW8pOwoJcmV0dXJuIDA7Cn0KCnZvaWQgY2FsKGludCB4LCBpbnQgeSwgaW50KnN1bSwgaW50ICpkaWZmLCBpbnQgKm11bCwgaW50ICptb2QpewoJKnN1bT14KyB5OwoJKmRpZmY9eCAtIHk7CgkqbXVsPXggKiB5OwoJKm1vZD14IC8geTsKfQ==