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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
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

Post by answerhappygod »

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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply