第二句的输出为什么没有x=1.5这一项?#include<stdio.h> #include<math.h> int main(void) { double x,h=0.1; for(x=0;x<1.5;x=x+h) printf("%.2lf ",x); printf("\n"); for(x=0;x<=1.5;x=x+h) printf("%.2lf ",x); printf("\n"); return 0; }
float数据在for循环中的判断
最新推荐文章于 2023-02-08 00:31:26 发布