标签:
#include "stdio.h" int main(void){ int num; while(scanf("%d", &num), num){ int i; double number; int Zcount = 0, Fcount = 0, zero = 0; for(i=0; i<num; i++){ scanf("%lf", &number); if(number > 0.0){ Zcount++; } else if(number < 0.0){ Fcount++; } else zero++; } printf("%d %d %d\n", Fcount, zero, Zcount); } return 0; }
标签:
原文地址:http://www.cnblogs.com/cnfanhua/p/4220938.html