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
How macro execution is faster than function ?
How does struct work in c?
Is register a keyword in c?
Which is an example of a structural homology?
What is meant by errors and debugging?
What is a far pointer in c?
How do you write a program which produces its own source code as output?
what are non standard function in c
What is the scope of global variable in c?
What is the difference between int main and void main?
What are extern variables in c?
What is wrong with this statement? Myname = 'robin';
What is a nested formula?
How can I automatically locate a programs configuration files in the same directory as the executable?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software