-->
当前位置:首页 > 题库

PROGRAMMING:Finding the value of a function

Luz5年前 (2021-05-10)题库417
Known $$s (x) = x - \ frac {x ^ 3} {3 / times1!} +\ frac {x^5}{5\times2!} - \ frac {x^7}{7\times3!}+...$$。 Write a program to find the sum of the first 10 items of S (x), and input x from the keyboard.
###Input example:
Enter the value of X from the keyboard
```in
one
```
###Output example:
2 decimal places are reserved for the output
```out
s = 0.75
```







answer:If there is no answer, please comment