#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+CiAKdm9pZCBjYWwoaW50IHgsIGludCB5LCBpbnQgKnN1bSwgaW50ICpkaWZmLCBpbnQgKm11bCwgaW50ICptb2QpOwppbnQgYWJzKGludCBhKTsKIAppbnQgbWFpbih2b2lkKQp7CiAgICBpbnQgeCx5LHN1bSxkaWZmLG11bCxtb2Q7CiAgICBwcmludGYoIng6Iik7CiAgICBzY2FuZigiJWQiLCZ4KTsKICAgIHByaW50ZigieToiKTsKICAgIHNjYW5mKCIlZCIsJnkpOwogCiAgICBjYWwoeCx5LCZzdW0sJmRpZmYsJm11bCwmbW9kKTsKIAogICAgcHJpbnRmKCJzdW06JWQsZGlmZjolZCxtdWw6JWQsbW9kOiVkXG4iLHN1bSxkaWZmLG11bCxtb2QpOwoJcmV0dXJuIDA7Cn0KIAp2b2lkIGNhbChpbnQgeCwgaW50IHksIGludCAqc3VtLCBpbnQgKmRpZmYsIGludCAqbXVsLCBpbnQgKm1vZCkKewoqc3VtPXgreTsKKmRpZmY9YWJzKHgteSk7CiptdWw9eCp5OwoqbW9kPXgveTsKfQppbnQgYWJzKGludCBhKQp7CmlmKGE8MCl7CglyZXR1cm4gLWE7Cn0KZWxzZXsKcmV0dXJuIGE7Cn0KfQ==