Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!