Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 macro execution is faster than function ?

1147


How does struct work in c?

1036


Is register a keyword in c?

1003


Which is an example of a structural homology?

1274


What is meant by errors and debugging?

1068


What is a far pointer in c?

1001


How do you write a program which produces its own source code as output?

1076


what are non standard function in c

1864


What is the scope of global variable in c?

963


What is the difference between int main and void main?

1010


What are extern variables in c?

957


What is wrong with this statement? Myname = 'robin';

1279


What is a nested formula?

1073


How can I automatically locate a programs configuration files in the same directory as the executable?

1119


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

3271