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