mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
Improved Code and removed Warnings (#483)
This commit is contained in:
@@ -9,7 +9,7 @@ Hence the difference between the sum of the squares of the first ten natural num
|
||||
Find the difference between the sum of the squares of the first N natural numbers and the square of the sum.
|
||||
'''
|
||||
from __future__ import print_function
|
||||
n = int(input())
|
||||
n = int(raw_input())
|
||||
suma = n*(n+1)/2
|
||||
suma **= 2
|
||||
sumb = n*(n+1)*(2*n+1)/6
|
||||
|
||||
Reference in New Issue
Block a user