标签:bsp nbsp scan 整数 scanf char clu pre har
1 #include<stdio.h> 2 int main() 3 { 4 float x, max, min; 5 scanf("%f", &x); 6 max = min = x; 7 while (x > 0) 8 { 9 if (x > max) 10 max = x; 11 if (x < min) 12 min = x; 13 scanf("%f", &x); 14 } 15 printf("\n max=%f min=%f\n", max, min); 16 getchar(); 17 return 0; 18 }
标签:bsp nbsp scan 整数 scanf char clu pre har
原文地址:https://www.cnblogs.com/liugangjiayou/p/11609537.html