单分支和双分支选择结构程序设计

#include<stdio.h>

void main()

{

     int  iX,iY;

  printf("please intput a integer:");

scanf("%d",&iX);

iY=iX;

if(iX<0)

iY=-iX;

printf(" |%d|=%d",iX,iY);

getch();

}

原文地址:https://www.cnblogs.com/KLDYG/p/6399082.html