알고리즘/코드업
[코드업] 4036 합과 차 (C언어)
hoony_
2020. 4. 7. 01:57
반응형
C언어
#include <stdio.h>
int main() {
int first, second;
scanf("%d %d", &first, &second);
int a = (first+second) / 2;
int b = (first-second) / 2;
printf("%d\n%d\n", a, b);
return 0;
}
r
|
반응형