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

What is structure pointer in c?

1058


Write a simple code fragment that will check if a number is positive or negative.

1156


Explain what is the difference between text files and binary files?

1160


How are pointers declared in c?

1062


What is omp_num_threads?

1086


What are run-time errors?

1120


Why is structure padding done in c?

1134


How do you declare a variable that will hold string values?

1179


What are predefined functions in c?

1101


What is the purpose of the preprocessor directive error?

1276


How do you override a defined macro?

1273


Explain what are the advantages and disadvantages of a heap?

1094


Write a program to swap two numbers without using third variable in c?

1133


any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above

1141


How do you list a file’s date and time?

1071