#include<stdio.h>
void main()
{
int iX,iY;
printf("please intput a integer:");
scanf("%d",&iX);
iY=iX;
if(iX<0)
iY=-iX;
printf("\n|%d|=%d",iX,iY);
getch();
}
#include<stdio.h>
void main()
{
int iX,iY;
printf("please intput a integer:");
scanf("%d",&iX);
iY=iX;
if(iX<0)
iY=-iX;
printf("\n|%d|=%d",iX,iY);
getch();
}
转载于:https://www.cnblogs.com/KLDYG/p/6399082.html