#include <stdio.h> int main() { int n,num=0,min=7FFFFFFF,max=-1; scanf("%d",&n); while(n!=0) { if(n>0) { num++; if(max < n) max = n; if(min > n) min = n; } scanf("%d",&n); } printf("正整数个数:%d\n",num); printf("最大值:%d,最小值:%d",max,min); return 0; }