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