int x=0; for(int i =0;i<6;i){ double number; scanf(“%lf”,&number); if(number>0) x; } printf(“%d positive numbers”,x);
//对于相应的double数,要分清