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 continue keyword in c

804


Is fortran still used in 2018?

825


Is it possible to execute code even after the program exits the main() function?

1108


What is property type c?

866


what are enumerations in C

952


In which language linux is written?

957


Explain what is wrong in this statement?

879


 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.

1988


#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); }

974


Why clrscr is used after variable declaration?

1349


What is console in c language?

868


Do pointers store the address of value or the actual value of a variable?

857


What is the difference between typedef struct and struct?

873


what are the facialities provided by you after the selection of the student.

1957


Why structure is used in c?

845