Home > Back-end >  Really don't know how to do
Really don't know how to do

Time:11-07

C + +, the basis of learning, hope to answer, bosses, best can cout,,, endl

CodePudding user response:

For example
The count=0
Sum=0
While True:
A=int (input ())
If a=="quit" :
Break
Sum=sum + a
Count +=1
Print (sum/count)

CodePudding user response:

The second question at first glance formula is easy, but the use of many a decimal to express? A number of double level is only 170 factorial and accuracy is very poor, I count to 10000, how many digits?
In fact I to 14 after already it's hard to see the difference,

CodePudding user response:

10000! More than 35000 digital uncle need operation

CodePudding user response:

Understand, thank you, I'm not too will be the second question to zha to, understand now
  • Related