Problem Statement :Problem6
Algorithm:
Well i will say this ones is pretty direct as Problem 1 on my blog.You dont need any code for this
Well i will say this ones is pretty direct as Problem 1 on my blog.You dont need any code for this
- Sum of k^2 is N*(N+1)*(2*N+1)/6
- Sum of k whole square is (N*(N+1)/2)^2
- Subtract the second value from the first for N=100 for the answer
No comments:
Post a Comment