入门练习3-3时间:2022-12-12 20:57:39 #include <stdio.h>int main(){int A;printf("请输入一个整数:");scanf("%d", &A);if (A>= 0){ printf("绝对值是%d\n", A);}else { printf("绝对值是%d\n", -A);}return 0; }