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
Why is c called "mother" language?
What is the deal on sprintf_s return value?
What is clrscr ()?
Why doesn't C support function overloading?
What does a pointer variable always consist of?
What is the difference between array and pointer in c?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
How will you delete a node in DLL?
What is main () in c?
What happens if header file is included twice?
writ a program to compare using strcmp VIVA and viva with its output.
What is the difference between #include and #include 'file' ?
a value that does not change during program execution a) variabe b) argument c) parameter d) none
What is the difference between volatile and const volatile?
what is the format specifier for printing a pointer value?