Back to Browse

Python Program to Print Even Numbers from 1 to N - In Hindi

116.8K views
May 29, 2019
9:12

Python Program to Print Even Numbers from 1 to N - In Hindi - Tutorial#18 In this video, I have explained a program with while loop to print even numbers among first n natural numbers in python. This is a basic program to print only even numbers from 1 to N 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 print all the even 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. Link to Previous Video: https://youtu.be/rBGH_GAkr5I Link to Next Video: https://youtu.be/DdpjSNH27pA Facebook Group: https://www.facebook.com/groups/2167344556716563/?ref=bookmarks Facebook Page: https://www.facebook.com/Codeitup-104310264625489/ Website: https://codeitup.in Tags Used: python,programming python tutorial python in hindi python for beginners programming fundamentals program to print even numbers from 1 to n python loops tutorial,while loop in python python looping program python program even or odd first 10 even numbers print even and odd numbers from 1-10 using while loop print even and odd number using while loop print the even number using while loop Python Program to Print Even Numbers from 1 to N - In Hindi #codeitup #whileloop #python

Download

0 formats

No download links available.

Python Program to Print Even Numbers from 1 to N - In Hindi | NatokHD