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 struct node in c?
Can you define which header file to include at compile time?
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
What does #pragma once mean?
What is a loop?
What is structure in c explain with example?
Should I learn data structures in c or python?
Can we access array using pointer in c language?
Explain spaghetti programming?
What are the different types of control structures?
What is identifiers in c with examples?
What is data structure in c language?
What are the disadvantages of c language?
write a program for the normal snake games find in most of the mobiles.
What are register variables? What are the advantage of using register variables?