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


Please Help Members By Posting Answers For Below Questions

What is the difference between text and binary modes?

651


Why does everyone say not to use gets?

612


In c programming language, how many parameters can be passed to a function ?

637


What are the types of pointers?

608


What are types of structure?

610






I have a varargs function which accepts a float parameter?

583


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

983


the question is that what you have been doing all these periods (one year gap)

1627


Which type of language is c?

656


What is a far pointer in c?

603


What is a keyword?

753


Why does notstrcat(string, "!");Work?

646


What is substring in c?

645


What is a protocol in c?

563


What is meant by keywords in c?

622