#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();
}
时间: 2024-09-28 17:18:10
#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();
}