#include <stdio.h>
void cal(int x, int y,int *add,int *sub);
int main(void) {
// your code goes here
int n1,n2,a,b;
cal(n1,n2,&a,&b);
printf("*add : %d, *sub : %d",a
,b
); return 0;
}
void cal(int x,int y,int *add,int *sub){
*add=x+y;
*sub=x-y;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIGNhbChpbnQgeCwgaW50IHksaW50ICphZGQsaW50ICpzdWIpOwppbnQgbWFpbih2b2lkKSB7CgkvLyB5b3VyIGNvZGUgZ29lcyBoZXJlCglpbnQgbjEsbjIsYSxiOwoJY2FsKG4xLG4yLCZhLCZiKTsKCXByaW50ZigiKmFkZCA6ICVkLCAqc3ViIDogJWQiLGEsYik7CglyZXR1cm4gMDsKfQp2b2lkIGNhbChpbnQgeCxpbnQgeSxpbnQgKmFkZCxpbnQgKnN1Yil7CgkqYWRkPXgreTsKCSpzdWI9eC15Owp9