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 / pragathi

#include<stdio.h>
void main()
{
int i=1,e,x,s,p=1;
printf("Enter e and x :");
scanf("%d%d",&e,&x);
while(i<=x)
{
p=p*e;
i++;
}

printf("power is %d ",p);
}

here pow(e,x) is calculated using this program.

Is This Answer Correct ?    46 Yes 40 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are bit fields portable?

1210


What is the difference between Printf(..) and sprint(...) ?

1641


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

1790


How can you check to see whether a symbol is defined?

1140


What are the features of the c language?

1142


Explain how can you check to see whether a symbol is defined?

1255


Are pointers integer?

1079


What is advantage of pointer in c?

1249


the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above

1100


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

1162


Are comments included during the compilation stage and placed in the EXE file as well?

1129


What is putchar() function?

1223


What is the c language function prototype?

1143


What does %c mean in c?

1144


Write a program to reverse a given number in c language?

1165