Home > Back-end >  The C language
The C language

Time:10-05

Novice, how to write a program genuflect is begged

CodePudding user response:

You can have a loop to calculate as 1, 2 will need to repeat the same formula, and 1, 2, all operations on the calculation result of the last time, just as with loop calculation and within 100, you think again, after all, only do yourself can really understand the

CodePudding user response:

Thank you very much, I have a try

CodePudding user response:

Pay attention to the difference between mathematical division and programming of the division,

R/4 is the division in math, but in the programming, the need to pay attention to the type, r/4.0 (if r is defined as an int type, if defined as double/float, do not need to consider to r/4.0, can be directly r/4)

CodePudding user response:

Thank you, I'll try that
  • Related