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

How do I use void main?

637


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

634


What is the use of the function in c?

606


How many bytes is a struct in c?

730


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...

9663






What are the properties of union in c?

596


What is scope rule of function in c?

556


How can you call a function, given its name as a string?

716


what is different between auto and local static? why should we use local static?

648


What is the function of this pointer?

681


Can you please explain the difference between exit() and _exit() function?

600


Explain about the constants which help in debugging?

858


What is the difference between %d and %i?

599


How can I recover the file name given an open stream or file descriptor?

600


What is LINKED LIST? How can you access the last element in a linked list?

636