write a python program for sum of squares of first n natural numbers
Code - Pls like share and subscribe to channel
================================================
n = int(input("Enter Value of N : "))
total = 0
for index in range(1, n+1):
total = total + (index ** 2)
print(f"sum of squares of first n natural numbers is : {total}")
Видео write a python program for sum of squares of first n natural numbers канала Code With TJ
================================================
n = int(input("Enter Value of N : "))
total = 0
for index in range(1, n+1):
total = total + (index ** 2)
print(f"sum of squares of first n natural numbers is : {total}")
Видео write a python program for sum of squares of first n natural numbers канала Code With TJ
Комментарии отсутствуют
Информация о видео
11 декабря 2024 г. 12:00:51
00:02:47
Другие видео канала