#include<stdio.h>

#include<conio.h>

#include<math.h>

void main()

{

int i,n;

float x,sum=0;

clrscr(); //to clear the screen

printf(“1+x+x^2+……+x^n”);

printf(“nnEnter the value of x and n:”);

scanf(“%f%d”,&x,&n);

for(i=1;i<=n;++i)

sum+=pow(x,i);

sum++;

printf(“nSum=%f”,sum);

getch(); //to stop the screen

}

x^2+2x+c Hello anyone have this equation program plz send me to my mail Keertik.v7@gmail.com

hellp can anyone help for solution of this sum S=2+4+6+8+16+32+…..

Please can sent me to eraldguri@live.com

you are really good

I need in output 1+x+x^2+x^3+………