The factorial of a nonnegative integer n is written n!
(pronounced “n factorial”) and is defined as
follows:
n! = n · (n - 1) · (n - 2) · … · 1 (for values of n greater
than to 1)
and
n! = 1 (for n = 0 or n = 1).
For example, 5! = 5 · 4 · 3 · 2 · 1, which is 120. Use while
structures in each of the following:
a) Write a program that reads a nonnegative integer and
computes and prints its factorial. Use the
following function prototype to calculate factorial:
int myFactorial(int n);
b) Write a program that estimates the value of the
mathematical constant e by using the formula:
Use the following function prototype to calculate e:
double myE( );
Hint: Use an accuracy of 10 terms.
c) Write a program that computes the value of ex by using
the formula
Use the following function prototype to calculate e:
double myEx(int x);
please tell me, how i clear the objective test? when i
studied form the one book after i solved the
objective ,that time i solved that qes. but if i tried
solve objective form the other book then i could not solved
these que.
55
asubmerged weir is one in which the water level on the down
stream side of the weir is
just at the crest level
below the crest level
above the crest level
at stamp elevation as water surface on upstream
38
how many synchronous motor are there in any power plant
69
what are the preventive maintanance actions taken for air
circuit breaker? please answer me
snd me karur vysya bank clerk model papers
kundavarapu.harish90@gmail.com
44
Hi i am riyaz ahmed . i got rejected for first time and i
nedd to apply for next time and can i apply in 1 or 2
week . and wt abt my sevies fee ? i should make a new once
shill i go with the same and wt docement i should change
can u plz help me out and my mail it is royalriyaz@gmail.com
133
What is the important precuations need tocarried out while
working with Electrolite in Battery PM?
81
What are the RISKS during the project construction?
139
WHAT IS MEANT BY TV TERMINAL IN 500MVA TRANSFORMER?