【正文】
for(i=1。 請勿改動主函數(shù)main和其他函數(shù)中的任何內(nèi)容,僅在函數(shù)fun的花括號中填入你編寫的若干語句。 例如若n為1000時,函數(shù)值應(yīng)為:s=。 printf(the result is:%f\n,s)。n)。 printf(\nPlease enter N:)。float s。 } return s。i++) { item=i+item。 for(i=1。include include include include float fun(int n){ int i。 1 1 1 S = 1 + ── + ─── + …… + ────── 1+2 1+2+3 1+2+3+…+n 例如:若n的值為11時,則函數(shù)值為: 注意:。 printf(\nThe number of the char is:%d\n,fun(a,ch))。 printf(\nPlease enter a char:)。 printf(\nPlease enter a string:)。}main(){ char a[M],ch。i++) if(ss[i]==c) j++。ss[i]!=39。include include include define M 81int fun(char *ss,c