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 continue keyword in c
Is fortran still used in 2018?
Is it possible to execute code even after the program exits the main() function?
What is property type c?
what are enumerations in C
In which language linux is written?
Explain what is wrong in this statement?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
Why clrscr is used after variable declaration?
What is console in c language?
Do pointers store the address of value or the actual value of a variable?
What is the difference between typedef struct and struct?
what are the facialities provided by you after the selection of the student.
Why structure is used in c?