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 do I use void main?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
What is the use of the function in c?
How many bytes is a struct in c?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
What are the properties of union in c?
What is scope rule of function in c?
How can you call a function, given its name as a string?
what is different between auto and local static? why should we use local static?
What is the function of this pointer?
Can you please explain the difference between exit() and _exit() function?
Explain about the constants which help in debugging?
What is the difference between %d and %i?
How can I recover the file name given an open stream or file descriptor?
What is LINKED LIST? How can you access the last element in a linked list?