#include <stdio.h>
void cal(int x,int y,int*sum,int *diff,int *mul,int *mod);
int main(void) {
// your code goes here
int x=2,y=3,sum,diff,mul,mod;
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;
if(*diff<0)
*diff=-*diff;
*mul=x*y;
*mod=x/y;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIGNhbChpbnQgeCxpbnQgeSxpbnQqc3VtLGludCAqZGlmZixpbnQgKm11bCxpbnQgKm1vZCk7CmludCBtYWluKHZvaWQpIHsKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCWludCB4PTIseT0zLHN1bSxkaWZmLG11bCxtb2Q7CgljYWwoeCx5LCZzdW0sJmRpZmYsJm11bCwmbW9kKTsKCXByaW50ZigiJWQsJWQsJWQsJWQiLHN1bSxkaWZmLG11bCxtb2QpOwoJCglyZXR1cm4gMDsKfQp2b2lkIGNhbChpbnQgeCxpbnQgeSxpbnQqc3VtLGludCAqZGlmZixpbnQgKm11bCxpbnQgKm1vZCl7Cgkqc3VtPXgreTsKCSpkaWZmPXgteTsKCWlmKCpkaWZmPDApCgkqZGlmZj0tKmRpZmY7CgkqbXVsPXgqeTsKCSptb2Q9eC95Owp9CgkKCQkKCQo=