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
main() { printf("hello"); fork(); }
Explain how can you determine the size of an allocated portion of memory?
all c language question
In C programming, how do you insert quote characters (‘ and “) into the output screen?
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'); }
What is clrscr ()?
What does double pointer mean in c?
What is the purpose of sprintf?
What do you understand by friend-functions? How are they used?
What is the collection of communication lines and routers called?
How arrays can be passed to a user defined function
Why cant I open a file by its explicit path?
what does static variable mean?
What is sizeof c?
explain what are actual arguments?