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 the properties of union. What is the size of a union variable
What is printf () in c?
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
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
What is difference between scanf and gets?
how to capitalise first letter of each word in a given string?
What is integer constants?
write a c program to find the sum of five entered numbers using an array named number
What is getche() function?
What is modifier & how many types of modifiers available in c?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
How can you increase the size of a statically allocated array?
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
What is the size of structure in c?
#include