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

Explain how does flowchart help in writing a program?

1061


Is null valid for pointers to functions?

1108


find the sum of two matrices and WAP for it.

1068


Write a function that will take in a phone number and output all possible alphabetical combinations

998


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

961


What is the general form of #line preprocessor?

949


Write programs for String Reversal & Palindrome check

1009


Explain data types & how many data types supported by c?

1024


Write a c program to demonstrate character and string constants?

2114


How can you read a directory in a C program?

1095


Explain what is page thrashing?

1053


Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

3183


What are the different types of pointers used in c language?

995


What are structural members?

954


Why is sizeof () an operator and not a function?

985