#include(stdio.h)
#include(conio.h)
#include(math.h)
int main( )
{
int i, x, n;
float sum, p;
clrscr( );
printf("Enter the base value 'x':");
scanf("%d", &x);
printf("\nEnter the power value 'n':");
scanf(" %d", &n);
sum=1;
for( i=1; i<=n ; i++)
{
p=pow(x, i);
sum=sum+(1/p);
}
printf("\nSum of the series: %f", sum);
getch( );
return 0;
}
Note:- if u have any douts regarding this program, please feel free to contact.
Wednesday, July 29, 2009
Subscribe to:
Post Comments (Atom)
it was easy to understand but i want the converstion of binary to decimal. pls reply fast.
ReplyDeleteMy Email-ID:mahalakshmi356@gmail.com
This comment has been removed by the author.
ReplyDeletepuncgaMdisp-ne-Paterson Khaled Marte https://wakelet.com/wake/Ra8-_rbKol9G3Srcj6W1i
ReplyDeletekennbeadsmorab
tenconmipu Chris Hollis https://wakelet.com/wake/uKM1Xe0pRJsrENm-XsyZh
ReplyDeletedestluacoval
Utrinquicast_mu Dale Smith download
ReplyDeleteclick here
download
link
raponasubs
Vliabipen-ro1989 Zach Kingery CorelDRAW
ReplyDeleteWebcamMax
Cisco Packet Tracer
menwhiwichpe
Macconcris_ke Dereck Goon Kaspersky AntiVirus
ReplyDeleteGoogle Chrome browser
VMware Workstation
orestworun