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 the difference between text and binary modes?
Why does everyone say not to use gets?
In c programming language, how many parameters can be passed to a function ?
What are the types of pointers?
What are types of structure?
I have a varargs function which accepts a float parameter?
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
the question is that what you have been doing all these periods (one year gap)
Which type of language is c?
What is a far pointer in c?
What is a keyword?
Why does notstrcat(string, "!");Work?
What is substring in c?
What is a protocol in c?
What is meant by keywords in c?