I. Write a program that will calculate the sum of the squares of the consecutive
numbers starting from 1
to the number, user entered. You should provide two ways to do it.
(a) Accumulation Way
(b) Mathematics Formula: 12+22+32+42+52+...+n2
= n(n+1)(2n+1) / 6
II. According to each method, you calculate the running time. Please display the number of time units needed for each statement.