main_program{
int n; cin >> n;
double i= BlankA, term = BlankB, result = BlankC;
repeat(n){// On tth entry, t=1..n
// i=t-1, term=1/t!
// result=1/0!+..+1/(t-1)!
BlankD
}
cout << result << endl;
}
1)what is BlankA?
2)what is BlankB?
3)what is BlankC?
4)Which of the following will be correct in BlankD?
i = i + 1; term = term / (i+1); result = result + term;
result = result + term; i = i + 1; term = term / (i+1);
i = i + 1; result = result + term; term = term / (i+1);
term = term / (i+1); result = result + term; i = i + 1;
1
Expert's answer
2019-08-21T09:57:32-0400
Dear Ganesh, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment