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 high-order bytes.

676


What is s in c?

616


How to set file pointer to beginning c?

666


How can I read data from data files with particular formats?

603


Explain how do you view the path?

655






What is 02d in c?

637


What is the difference between volatile and const volatile?

565


Can we access the array using a pointer in c language?

561


What is indirection in c?

627


Explain the difference between malloc() and calloc() in c?

578


Why do we use int main?

610


Is c a great language, or what?

604


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

577


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

1859


Explain the use of function toupper() with and example code?

655