ExplanationInitially it is assumed sum of the two series 1 and 2 are zero. So, the variables 'x7 and
xy 7 are set to zero. The denominators of the first and second equations are squares and cubes of
numbers from 1 to % n7 respectively. Where, the user enters value of' n7 and it determines how long
the series should be continued. Every time in the loop square and cube of variable ' i
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.