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
What is 'bus error'?
diff between exptected result and requirement?
What is #define in c?
What is an example of structure?
Write a program to print “hello world” without using semicolon?
What do header files do?
Explain what is the best way to comment out a section of code that contains comments?
is it possible to create your own header files?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
Explain do array subscripts always start with zero?
What is a good way to implement complex numbers in c?
How can I recover the file name given an open stream?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
What is the use of linkage in c language?