0

Hi, i new here....

I'm making a program which can calculate the below expansion of

Ln)(1 + x) = x/1 - x^2/2 + x^3/3 - x^4/4 + x^5/5 - x^6/6

Below is my syntax

```
#include <iostream.h>
int main()
{
float num1;
cout<<"Enter a number: ";
cin>>num1;
num1 = num1/1 - num1 * num1/2 + num1 * num1 * num1/3 - num1 * num1 * num1 *
num1/4 + num1 * num1 * num1 * num1 * num1/5 - num1 * num1 * num1 * num1 * num1* num1/6;
cout<<"ln of num1 : "<<num1<<endl;
return 0;
}
```

I wanted it to calculate the amount manually without using any maths function.

Anyone can share their knowledge here??