s=1/ 2+2/3+3/4+.....+9/10 in c++
Answers
Answered by
0
You can use a “for loop” for this program
for(int i=1, int j=2, int r, int s=0;j<=10;++i,++j)
{
r=i/j;
s=s+r;
}
cout<<“Sum of series :”<
This just a fragment, make sure you write the complete programme
Hope it helps :)
for(int i=1, int j=2, int r, int s=0;j<=10;++i,++j)
{
r=i/j;
s=s+r;
}
cout<<“Sum of series :”<
This just a fragment, make sure you write the complete programme
Hope it helps :)
Similar questions