Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CONVERT TO C PROGRAMMING #include #include using namespace std; int main(int argc, char** argv) { int m; double ln10=0; cout < >m; while(m <10 ||
CONVERT TO C PROGRAMMING
#include
int main(int argc, char** argv) { int m; double ln10=0; cout<<"Enter the value of M: "; cin>>m; while(m<10 || m>50){ cout<<"Enter the correct value for M: "; cin>>m; } printf(" N \t Value \t\t Subtotal "); printf("================================== "); for(int n=1;n<=m;n++){ double value = pow((9.00/10.00),n)/n; ln10+=value; printf("%d \t %.5f \t %.5f ",n,value,ln10); } printf("================================== "); printf(" Final ln10: %.5f",ln10); return 0; }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started