Question: Write a python program that takes a positive integer N from user's input and do the following things: Check whether it's a positive integer. If
Write a python program that takes a positive integer N from user's input and do the following things:
Check whether it's a positive integer. If not, re-take user input.
Calculate sum of squares of numbers from 1 to N
So if the user inputs 4, the program should output 30 ( = 12 + 22 + 32 + 42 )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
