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
Explain what is a static function?
What do you mean by recursion in c?
What is the use of ?
What is ## preprocessor operator in c?
What are two dimensional arrays alternatively called as?
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
What are the applications of c language?
Are there constructors in c?
What is volatile variable how do you declare it?
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
Does c have class?
If I have a char * variable pointing to the name of a function ..
program to convert a integer to string in c language'
What is %lu in c?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?