1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #pragma warning (disable:4996) #include <stdio.h> #include <stdlib.h> #include <math.h> int main() { int* num1 = (int*)malloc(sizeof(int)); int* num2 = (int*)malloc(sizeof(int)); scanf("%d", num1); scanf("%d", num2); printf("%d", abs(*num1 - *num2)); return 0; } | cs |
프로그래밍 문제/정올