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
Posted: Fri Apr 29, 2022 7:05 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......
Example: nth term is 4 sum is 8 because (1+2+2+3).
************Please solve using a for loop.
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.