⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 #3.cpp

📁 these are 5 C codes (BorlandC++) realizing the numerical algoriths
💻 CPP
字号:
#include <stdio.h>
#include<conio.h>
#include <math.h>
#include <string.h>

void main()
{
 double x,S=0,eps=0.00001;
 clrscr();
 printf("Vvedite x (|x|>1)\n");
 scanf("%lf",&x);
 clrscr();
 int i=1;
 while (1/(i*pow(x,i))>eps)
   {
    S+=1/(i*pow(x,i));
    i+=2;
   }
 printf("Summa=%7.5lf\n",S);
 getch();

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -