filmov
tv
Python Program to Find Sum of First n Natural Numbers - In Hindi
![preview_player](https://i.ytimg.com/vi/eYBkgEowPOM/maxresdefault.jpg)
Показать описание
Python Program to Find Sum of First n Natural Numbers - In Hindi - Tutorial#16
In this video, I have explained a program with while loop to to find sum of first n natural numbers in python. This is a basic program to to find sum of first n natural numbers using while loop. While loop is the basic looping system in Python Programming. Natural Numbers start with 1 and it goes upto N. We have to find sum all the numbers from 1 to a N (given by the user).
Looping/While statement is used to execute a single statement or a block of statement n times till the condition is true. Every loop must contain three parts:
1. Initialization of counter variable.
2. Condition
3. Increment/Decrement of counter variable
While loop or any loop will work fine if all the three parts are there in the programs. If any one is missing the loop will not run properly.
Tags Used:
Find Sum of First n Natural Numbers
python,python tutorial in hindi
python tutorial for beginners
complete python tutorial in hindi
while loop in python
while loop in python in hindi
while loop in python programming
loops in python programming
loops in python for beginners
programming exercises python
python while loop examples
while program in python
while programming in python
find sum of first n natural numbers in python
sun of first n natural numbers
#codeitup
#whileloop
#python
In this video, I have explained a program with while loop to to find sum of first n natural numbers in python. This is a basic program to to find sum of first n natural numbers using while loop. While loop is the basic looping system in Python Programming. Natural Numbers start with 1 and it goes upto N. We have to find sum all the numbers from 1 to a N (given by the user).
Looping/While statement is used to execute a single statement or a block of statement n times till the condition is true. Every loop must contain three parts:
1. Initialization of counter variable.
2. Condition
3. Increment/Decrement of counter variable
While loop or any loop will work fine if all the three parts are there in the programs. If any one is missing the loop will not run properly.
Tags Used:
Find Sum of First n Natural Numbers
python,python tutorial in hindi
python tutorial for beginners
complete python tutorial in hindi
while loop in python
while loop in python in hindi
while loop in python programming
loops in python programming
loops in python for beginners
programming exercises python
python while loop examples
while program in python
while programming in python
find sum of first n natural numbers in python
sun of first n natural numbers
#codeitup
#whileloop
#python
Комментарии