Write a C program that calculates the sum up till the nth term
of the sequence 1,2,2,3,3,3,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6......
Example: nth term is 4 sum is 8 because (1+2+2+3).
************Please solve using a for loop.
Write a C program that calculates the sum up till the nth term of the sequence 1,2,2,3,3,3,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Write a C program that calculates the sum up till the nth term of the sequence 1,2,2,3,3,3,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!