Program to find the value of e raised to power x using while
loop
Answer Posted / ayyanar.m
include<stdio.h>
#include<math.h>
main()
{
int i=1,e,x,c;
printf("enter the value of x and e);
scanf("%d%d",&x,&e);
while(i<=e)
{
c=pow(x,e);
i=i+1;
}
printf("the sum of series is %f",c);
getch();
}
| Is This Answer Correct ? | 8 Yes | 21 No |
Post New Answer View All Answers
Explain how does flowchart help in writing a program?
Is null valid for pointers to functions?
find the sum of two matrices and WAP for it.
Write a function that will take in a phone number and output all possible alphabetical combinations
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
What is the general form of #line preprocessor?
Write programs for String Reversal & Palindrome check
Explain data types & how many data types supported by c?
Write a c program to demonstrate character and string constants?
How can you read a directory in a C program?
Explain what is page thrashing?
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
What are the different types of pointers used in c language?
What are structural members?
Why is sizeof () an operator and not a function?