Answered step by step
Verified Expert Solution
Link Copied!

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 #include using namespace std;

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

5 Explain Complexity, Autonomy and Novelty.

Answered: 1 week ago

Question

I receive useful feedback about my performance.

Answered: 1 week ago

Question

I am encouraged to offer opinions/suggestions.

Answered: 1 week ago