This repository contains a simple Python script for calculating the sum of squares of consecutive integers. The script takes an input value n
and computes the sum of the squares of the first n
natural numbers.
To use the calculator, clone the repository to your local machine and run the Python script sum_of_squares.py
with the desired value of n
as an argument.
git clone https://github.com/Abhrankan-Chakrabarti/sum-of-squares-calculator.git
cd sum-of-squares-calculator
python sum_of_squares.py n
Replace n
with the desired number of consecutive integers.
For example, to calculate the sum of squares of the first 5 natural numbers, run:
python sum_of_squares.py 5
The script will output:
The sum of the squares of the first 5 natural numbers is: 55
If you have ideas for improving the calculator or want to report a bug, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.