入夏标志着春夏季节完成转换,气候学上入夏的标准是必须要连续 5 天日平均气温达到 22 °C 或以上,则这连续 5 天中的第一天为入夏日。函数 fun 的功能是判断 5 月份是否入夏并输出有关信息,若入夏就返回是哪天,否则返回 -1 。请补全下列代码。 #include Int fun(int a[],int n){ /*a 存放某月的每日气温值, n 存放的是此月的天数 */ Int I,c=0; for(i=0;i if( 1 ){ c++; if(c>=5) 2 ; else 3 ; } 4 ; } return -1; } Int main () { int t[31]={20,21,22,22,19,18,18,19,22,23, 22,21,20,21,24,22,25,24,23, 21,23,22,21,22,25,26,30,28,27,28} int d; d=fun(t,31); if(d==-1) printf(“Not in summer\n”) else printf(“5-%d in summer\n”,d+1) ; return 0 ; }