write a pytnon program display the following program by while loop 1 8 27 64 plsss answer
Answers
Answered by
0
Approach: We can solve this problem using the following formula: Sn = 1 + 8 + 27 + 64 + .........up to n terms Sn = (n*(n+1)/ 2)^ ...
Answered by
3
Answer:
Input: N = 2
Output: 9
9 = (2*(2+1)/2)^2
Input: N = 4
Output: 100
100 = (4*(4+1)/2)^2
Similar questions