Contact
Privacy
Home
Latest
Oldest
Popular
Random
Home
»
Categrories
»
Programming Languages
»
Python
»
Write a program to print the sum of squares of first n natural numbers - Python
Categories:
Python
Viewed:
3 -
Published at:
a few seconds ago
[ Write a program to print the sum of squares of first n natural numbers ]
n = 21 sum_n = 0 for i in range(1, n+1): sum_n += i**2 print(sum_n)
Related Posts:
How to Make a Calculator App for Android
Android
How Content Management Systems Dominate an Industry (And Why We Love Them)
Sponsored
Passing INT in bundle and placing it as drawable?
Android
How to Display Images sequentially from a folder using HTML-Javascript-CSS?
HTML
Good examples of MapServer / OpenLayers
Certain characters not being read fom file - Python
Python
You may also like:
Reversing a List in Java - In-Place and Out-Of-Place
Java
JavaScript Captcha Example
JavaScript
Java Flow Control: for and for-each Loops
Java
Java StringBuffer Class
Java
PL/SQL Operators
PL/SQL
Using Sequelize.js and SQLite in an Express.js App
Nodejs
Categories
Blog
Career
Computer
Downloads
Internet
Linux
News
Review
Security
Technology
Database
MySql
Oracle Database
SQL Server
SQLite
mongodb
Dev
Algorithm
Android
Batch File Programming
Books
Competitive Programming
Computer Networks
Data Structure
Design
Development
Flutter
Game
Git
Interview Questions
JDBC
Machine Learning
Mobile
Operating System
Programming
Projects
Sponsored
Webservice
iOS
Framework
.NET
Angular
Django
MVC
Nodejs
React
Programming Languages
ASP.NET
C Programs
C#
C++ Programs
CSS
HTML
JSP
Java
JavaScript
PHP
PL/SQL
Python
SQL
Swift
VB.NET
Tools
privacy-policy-generator
Mac Vendors
Ports Numbers
Wifi Routers Passwords