c语言绝对值函数fabs(c语言绝对值)

互联网   2023-07-27 23:05:06


(资料图片)

1、#include#includeint main(){int i;int Thefirstnumber;int Thesecondnumber;int sum=0;printf("请输入任意两个整数(负数也可有):");scanf("%d %d",&Thefirstnumber,&Thesecondnumber); if(Thefirstnumber>Thesecondnumber) { int tmp=Thesecondnumber; Thesecondnumber=Thefirstnumber; Thefirstnumber=tmp; }for(i=Thefirstnumber+1;i

本文分享完毕,希望对大家有所帮助。

猜你喜欢
最新资讯