I did this but im not sure if i have it done right or not , if its wrong please me another way of fixing it.

p.s dont get it too complicated im a begginer thanks

[sub]#include <iostream> using namespace std; int main(){ double i,n,sum=0,k=2,l=3,h=1; cout<<"Give the number n: \n"; cin>>n; for (i=1;i<=(3*n-2)/(3*n-1)*(3*n);i++) { sum+=h/(k*i); h=h+3; k=k+3; l=l+3; } cout<<"The sum of the numeric series is: "<<sum; return 0; }[/sub]