Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i=1; // итерация цикла
- q=1; // номер действия
- sinx=0; // собственно синус
- while (i<=10) {
- if (i=1) {
- sinx+=x;
- } else {
- i=i+2;
- if ((q/2)=0) {
- sinx-=(x^i)/(i!);
- } else {
- sinx+=(x^i)/(i!);
- }
- }
- q++;
- }
Add Comment
Please, Sign In to add comment