#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\n",sum
,diff
,mul
,mod
); return 0;
}
void cal(int x, int y, int *sum, int *diff, int *mul, int *mod)
{
*sum=x+y;
*mul=x*y;
*mod=x/y;
}
{
if(a<0){
return -a;
}
else{
return a;
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIGNhbChpbnQgeCwgaW50IHksIGludCAqc3VtLCBpbnQgKmRpZmYsIGludCAqbXVsLCBpbnQgKm1vZCk7CmludCBhYnMoaW50IGEpOwoKaW50IG1haW4odm9pZCkKewogICAgaW50IHgseSxzdW0sZGlmZixtdWwsbW9kOwogICAgcHJpbnRmKCJ4OiIpOwogICAgc2NhbmYoIiVkIiwmeCk7CiAgICBwcmludGYoInk6Iik7CiAgICBzY2FuZigiJWQiLCZ5KTsKICAgIAogICAgY2FsKHgseSwmc3VtLCZkaWZmLCZtdWwsJm1vZCk7CiAgICAKICAgIHByaW50Zigic3VtOiVkLGRpZmY6JWQsbXVsOiVkLG1vZDolZFxuIixzdW0sZGlmZixtdWwsbW9kKTsKCXJldHVybiAwOwp9Cgp2b2lkIGNhbChpbnQgeCwgaW50IHksIGludCAqc3VtLCBpbnQgKmRpZmYsIGludCAqbXVsLCBpbnQgKm1vZCkKewoqc3VtPXgreTsKKmRpZmY9YWJzKHgteSk7CiptdWw9eCp5OwoqbW9kPXgveTsKfQppbnQgYWJzKGludCBhKQp7CmlmKGE8MCl7CglyZXR1cm4gLWE7Cn0KZWxzZXsKcmV0dXJuIGE7Cn0KfQ==