int x; printf("Enter number: "); scanf("%d", &x); if (x < 0) { x = -x; } printf("Absolute value = %d\n", x); лӐӎӍӊӌҿӌӄҿࡇ Enter number: -37 Absolute value = 37 ߞߟ
int x; printf("Enter number: "); scanf("%d", &x); if (x < 0) { x = -x; } printf("Absolute value = %d\n", x); лӐӎӍӊӌҿӌӄҿࡇ Enter number: -2147483648 Absolute value = -2147483648 ߞߟ