Program to find the value of e raised to power x using while
loop
Answer Posted / amit
#include<stdio.h>
void main()
{
int sum,n;
fact x,y;
printf("Enter the exponential(E) value");
scanf("%f ",y);
printf("Enter the value for x");
scanf("%f",x);
printf("No. of times x is to be multiplied");
scanf("%d",n);
while(e=n)
{
sum=x^n;
printf("The result of expression is =%d",sum);
printf("Check this out%d");
}
}
| Is This Answer Correct ? | 34 Yes | 71 No |
Post New Answer View All Answers
Tell me when is a void pointer used?
What do you mean by dynamic memory allocation in c? What functions are used?
Why & is used in c?
What is a structure member in c?
Is stack a keyword in c?
Explain setjmp()?
What is meant by initialization and how we initialize a variable?
Explain what is the difference between a free-standing and a hosted environment?
How can my program discover the complete pathname to the executable from which it was invoked?
How can you tell whether two strings are the same?
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
What is the difference between exit() and _exit() function in c?
can anyone please tell about the nested interrupts?
Why doesnt the call scanf work?
What is the -> in c?