本文共 582 字,大约阅读时间需要 1 分钟。
方幂序列 c+~+
#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
for(i=1;i<=n;++i)
sum+=pow(x,i);
cout<<“nSum=”<<sum;
getch(); //to stop the screen
}
#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
for(i=1;i<=n;++i)
sum+=pow(x,i);
cout<<“nSum=”<<sum;
getch(); //to stop the screen
}
翻译自:
方幂序列 c+~+
转载地址:http://lrwwd.baihongyu.com/