Program to find the value of e raised to power x using while
loop

Answer Posted / ayyanar.m

include<stdio.h>
#include<math.h>
main()
{
int i=1,e,x,c;
printf("enter the value of x and e);
scanf("%d%d",&x,&e);
while(i<=e)
{
c=pow(x,e);
i=i+1;
}
printf("the sum of series is %f",c);
getch();
}

Is This Answer Correct ?    8 Yes 21 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

main() { printf("hello"); fork(); }

687


Explain how can you determine the size of an allocated portion of memory?

616


all c language question

1862


In C programming, how do you insert quote characters (‘ and “) into the output screen?

885


What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }

694






What is clrscr ()?

631


What does double pointer mean in c?

570


What is the purpose of sprintf?

611


What do you understand by friend-functions? How are they used?

640


What is the collection of communication lines and routers called?

604


How arrays can be passed to a user defined function

570


Why cant I open a file by its explicit path?

590


what does static variable mean?

645


What is sizeof c?

601


explain what are actual arguments?

630