#include <stdio.h>
void cal(int x, int y, int *sum, int *diff, int *mul, int *mod);
int main(void){
int x,y,sum,diff,mul,mod;
cal(x,y,&sum,&diff,&mul,&mod);
printf("sum:%d diff:%d mul:%d mod:%d",sum
,diff
,mul
,mod
); }
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+Cgp2b2lkIGNhbChpbnQgeCwgaW50IHksIGludCAqc3VtLCBpbnQgKmRpZmYsIGludCAqbXVsLCBpbnQgKm1vZCk7CgppbnQgbWFpbih2b2lkKXsKCWludCB4LHksc3VtLGRpZmYsbXVsLG1vZDsKCXByaW50ZigieCA6IFxuIik7IHNjYW5mKCIlZCIsICZ4KTsKCXByaW50ZigieSA6IFxuIik7IHNjYW5mKCIlZCIsICZ5KTsKCQoJY2FsKHgseSwmc3VtLCZkaWZmLCZtdWwsJm1vZCk7CgkKCXByaW50Zigic3VtOiVkIGRpZmY6JWQgbXVsOiVkIG1vZDolZCIsc3VtLGRpZmYsbXVsLG1vZCk7Cn0KCnZvaWQgY2FsIChpbnQgeCxpbnQgeSwgaW50ICpzdW0sIGludCAqZGlmZixpbnQgKm11bCxpbnQgKm1vZCl7Cgkqc3VtID0geCArIHk7CgkqZGlmZiA9IHggLSB5OwoJKm11bCA9IHggKiB5OwoJKm1vZCA9IHggLyB5Owp9