Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in C Programming by (140 points)

this is what i have so far but i'm not sure how to increase it? can any one assist me? if there is any way you could help me improve it, please do so

for (i = 1; i <= 56; i++) {

sum = 1.0 / i;

if (i * 4 == 1)

continue;

printf("\nresult|c.| = %.2f\n", sum);

}

this is what I'm trying to convert into for structure: as you can see the number keeps increasing the next number is 1/11

1/1 + 1/2 + 1/4 +1/7 +1/11+1/16+1/22+1/29......1/56

Please log in to answer this question.

Related questions

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...