Computer Science, asked by lala2856, 1 year ago

write the main code in bluej to display these up-to n terms: 1 1/2 1/3. 1/4.....upto n​

Answers

Answered by Anonymous
0

Logic:

for(int i=1;i<=n;i++)

{

Int sum=sum+(1/i);

}

Hope it helps

Similar questions