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
Explain high-order bytes.
What is s in c?
How to set file pointer to beginning c?
How can I read data from data files with particular formats?
Explain how do you view the path?
What is 02d in c?
What is the difference between volatile and const volatile?
Can we access the array using a pointer in c language?
What is indirection in c?
Explain the difference between malloc() and calloc() in c?
Why do we use int main?
Is c a great language, or what?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
Explain the use of function toupper() with and example code?