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
How do you list a file’s date and time?
explain what are actual arguments?
What are examples of structures?
What is wrong in this statement?
What do you know about the use of bit field?
application attempts to perform an operation?
What is identifiers in c with examples?
Write the control statements in C language
Why is sprintf unsafe?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
What is function definition in c?
How many types of sorting are there in c?
What are the complete rules for header file searching?
What are the different types of C instructions?
Are pointers really faster than arrays?