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 'bus error'?

645


diff between exptected result and requirement?

1592


What is #define in c?

621


What is an example of structure?

588


Write a program to print “hello world” without using semicolon?

672






What do header files do?

603


Explain what is the best way to comment out a section of code that contains comments?

719


is it possible to create your own header files?

638


What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

746


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

655


Explain do array subscripts always start with zero?

759


What is a good way to implement complex numbers in c?

594


How can I recover the file name given an open stream?

553


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

647


What is the use of linkage in c language?

615