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
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
Why we use int main and void main?
How does placing some code lines between the comment symbol help in debugging the code?
What is the sizeof () operator?
Is return a keyword in c?
How can I find out if there are characters available for reading?
a value that does not change during program execution a) variabe b) argument c) parameter d) none
How can my program discover the complete pathname to the executable from which it was invoked?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
How can I rethow can I return a sequence of random numbers which dont repeat at all?
What is null pointer in c?
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
Which function in C can be used to append a string to another string?
Is c procedural or functional?
What is %lu in c?