Home > database >  C language a custom function called out, strives for the bosses to help
C language a custom function called out, strives for the bosses to help

Time:09-23

Does not show anything this is how the

#include
Double f (int n)
{
int i; double s;
S=1.0;
for(i=1; 1 & lt;=n; I++) s +=1.0/I;
return s;
}
Int main ()
{
Int I, m=3; Double a=0.0;
for(i=0; iPrintf (" % f \ n ", a);
}

CodePudding user response:

Send the wrong section,

CodePudding user response:

reference 1st floor xiaoxiangqing response:
send the wrong section,

First came, I should send which plate

CodePudding user response:

refer to the second floor qq_46341303 response:
Quote: refer to 1st floor xiaoxiangqing response:
send the wrong section,

First came, I should send which plate

Let the webmaster help you move to c + + section

CodePudding user response:

for (i=1; 1 & lt;=n; I++) here to write wrong, it should be
for (i=1; i<=n; i++)

CodePudding user response:

reference 4 floor YXTS122 response:
for (I=1; 1 & lt;=n; I++) here to write wrong, it should be
for (i=1; i<=n; I++)

Yeah, thank you!!!!!!!!!!!!!!!!!!!!
  • Related