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 theCodePudding user response:
Thank you very much, I have a tryCodePudding 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