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 the properties of union. What is the size of a union variable

931


What is printf () in c?

790


PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

1956


please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

1567


What is difference between scanf and gets?

862


how to capitalise first letter of each word in a given string?

1672


What is integer constants?

808


write a c program to find the sum of five entered numbers using an array named number

1876


What is getche() function?

817


What is modifier & how many types of modifiers available in c?

825


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

903


How can you increase the size of a statically allocated array?

851


What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file

882


What is the size of structure in c?

907


#include { printf("Hello"); } how compile time affects when we add additional header file .

1663