Python Program to find Sum of First N Even Numbers - In Hindi

  Рет қаралды 81,193

codeitup

codeitup

Күн бұрын

Пікірлер: 145
@BABLISINGH-wf8dw
@BABLISINGH-wf8dw 5 жыл бұрын
I am following all your videos step by step and enjoying learning python. Thanks for such awesome videos sir.
@codeitup
@codeitup 5 жыл бұрын
Thanks babli.
@DMKenKaneki
@DMKenKaneki Жыл бұрын
n=int(input("Enter the no. you want to sum: ")) i=1 _sum=0 while i
@azimuddinahmad4727
@azimuddinahmad4727 Жыл бұрын
wrong..this program is used to print sum of even numbers from 1 to n
@rohittech5605
@rohittech5605 2 жыл бұрын
Sir aap really bahut hi achha samjhte hain.i am 101% satisfied in this video lac
@codeitup
@codeitup 2 жыл бұрын
Thanks a lot!
@akhilsharma4004
@akhilsharma4004 4 жыл бұрын
# program to find sum of first n eve numbers n=int(input("enter the value of n : ")) i=2 total=0 while(i
@codeitup
@codeitup 4 жыл бұрын
Good attempt.
@diptiranjannayak489
@diptiranjannayak489 4 жыл бұрын
@@codeitup thank u sir
@nirajkarki1850
@nirajkarki1850 4 жыл бұрын
hey ,this is my method for this program and it successfully run ! n=int(input("enter the required even number u want to print")); i=1 c=2*n sumx=0 while (i
@codeitup
@codeitup 4 жыл бұрын
👍
@ShadabAnsari-dt4ni
@ShadabAnsari-dt4ni 3 жыл бұрын
@@codeitup sir can you please lil bit explain me this concept I didn't get specially 2*n
@Egoiistiic
@Egoiistiic 3 жыл бұрын
num = int(input("enter a number: ")) sum=0 i=1 count=0 while(count!=num): if i%2==0: sum+=i count+=1 i+=1 print("Sum of even number =",sum) # Correct code
@vidhichauhan5042
@vidhichauhan5042 4 жыл бұрын
Sir you are a brilliant teacher... 👌👌👌👌👌👌👌
@codeitup
@codeitup 4 жыл бұрын
🙂
@rohittech5605
@rohittech5605 2 жыл бұрын
Aapka samjhane ka tarika bahut hi achha hain
@codeitup
@codeitup 2 жыл бұрын
Thanks!
@rachana7024
@rachana7024 Жыл бұрын
very knowledgable video.
@codeitup
@codeitup Жыл бұрын
Glad you liked it!
@Vaibhav_Bhardwaj
@Vaibhav_Bhardwaj Жыл бұрын
n=int(input("Enter a number:")); sum=0; i=2; while (i
@debarghyaadhikari5558
@debarghyaadhikari5558 3 жыл бұрын
Nice explanation
@chirag.2407
@chirag.2407 3 жыл бұрын
Thank you sir it is very helpful
@codeitup
@codeitup 3 жыл бұрын
Glad to help you Chirag!
@shivaniyadav3773
@shivaniyadav3773 4 жыл бұрын
Thank you so much sir .....It is very helpful 👍👍👍
@codeitup
@codeitup 4 жыл бұрын
Most welcome🙂
@Sahilbaranwal
@Sahilbaranwal 9 ай бұрын
if you have a problem with this code, i have an alternate code for you, here it is. n=int(input("enter the number")); i=1; sum=0; while(i
@vaibhavkumar9047
@vaibhavkumar9047 9 ай бұрын
i=1 count=0 a=0 n=int(input("enter first n even number ")) while count
@Sahilbaranwal
@Sahilbaranwal 8 ай бұрын
@@vaibhavkumar9047 actually I want to say that my code will also works as yours.😁
@radhikabinesh4363
@radhikabinesh4363 4 жыл бұрын
Thankyou sirrrrr veryyy much❤️.you taught very nicely
@codeitup
@codeitup 4 жыл бұрын
Glad to help you Radhika!
@abhi7155
@abhi7155 Жыл бұрын
This vedio is helpfull❤❤
@bobbydevi7591
@bobbydevi7591 9 ай бұрын
Very naice explanation like it very muck
@codeitup
@codeitup 9 ай бұрын
Thanks for liking!
@rekhabisht255
@rekhabisht255 4 жыл бұрын
Thank you sir
@codeitup
@codeitup 4 жыл бұрын
Thanks Rekha, if you really liked the content, share this channel with your friends..
@thetutorial7641
@thetutorial7641 4 жыл бұрын
Thanks sir... It's really helping me
@codeitup
@codeitup 4 жыл бұрын
Glad to help you dear😊
@tanveerbibi6474
@tanveerbibi6474 Жыл бұрын
Nice video❤❤❤
@codeitup
@codeitup Жыл бұрын
Thanks !
@thetutorial7641
@thetutorial7641 4 жыл бұрын
Awesome sirji
@codeitup
@codeitup 4 жыл бұрын
Thanks Adnan!
@Anonymous-yx5nx
@Anonymous-yx5nx Жыл бұрын
Sir please differentiate between the use of i and count. Because in previous programs i was in the place of count. Please sir clear my doubt
@prayasnayak7136
@prayasnayak7136 3 жыл бұрын
Sir I am enjoying video very much! Thank you sir ! Sir my nickname is also "ANAND" 😃😃🥰🥰
@codeitup
@codeitup 3 жыл бұрын
Sunkar "ANAND" aa gaya !
@badanax7820
@badanax7820 4 жыл бұрын
V.Good ❤️
@codeitup
@codeitup 4 жыл бұрын
Thanks🙂
@santoshyadav11111
@santoshyadav11111 2 жыл бұрын
Tq so much sir 🙏❤️‍🔥
@codeitup
@codeitup 2 жыл бұрын
Most welcome😊
@ShadabAnsari-dt4ni
@ShadabAnsari-dt4ni 3 жыл бұрын
n=int(input('Enter value please ')) i=2 sum=0 count=0 while (count
@raniyamuthu
@raniyamuthu 5 жыл бұрын
Sir in this count is there but in 1to n pgm no count why? Pls reply sir
@codeitup
@codeitup 5 жыл бұрын
Becuase here we have to count total even numbers which we have to add. For example suppose user says that he has to add 5 even number then there must be some variable which will count that 5 numbers has been added. That's why count variable has been used here. :)
@Ankitkumar-qh6tx
@Ankitkumar-qh6tx 4 жыл бұрын
i=0; sum=0; while i
@codeitup
@codeitup 4 жыл бұрын
A single program may be written in n number of ways dear!
@shwetasharma154
@shwetasharma154 2 ай бұрын
n tends to infinity
@Jankibhandari78
@Jankibhandari78 3 жыл бұрын
Sir is program main count ko 1 bhi de sakte hain aur (count
@hardeeprajput7701
@hardeeprajput7701 4 жыл бұрын
Sir, what if i do like this Is this correct, n=int(input("how many even numbers u want to add : ")); i=1; sum=0; while(i
@codeitup
@codeitup 4 жыл бұрын
Perfectly correct Hardeep ! Good !
@MEPurvenZambre
@MEPurvenZambre 2 жыл бұрын
sir how to perform this code by using for loop
@rohitbaikar1341
@rohitbaikar1341 5 жыл бұрын
Write a program to display the addition of first 20 even number..
@codeitup
@codeitup 5 жыл бұрын
count=0 i=1 sum=0 while(count
@rohitbaikar1341
@rohitbaikar1341 5 жыл бұрын
@@codeitup sir 3 error Aa rhe he..plz help
@codeitup
@codeitup 5 жыл бұрын
@@rohitbaikar1341 Join my facebook group in the description link and share the snapshot.
@faizalkhalifa9187
@faizalkhalifa9187 3 жыл бұрын
Thanks sir
@codeitup
@codeitup 3 жыл бұрын
😊
@enuarora
@enuarora Жыл бұрын
Can you please explain indentation in this. How many tabs should be used with if and why should i=i+1 be aligned with if
@aksharvikram5787
@aksharvikram5787 5 жыл бұрын
Write a program to count the number of digits in a number please
@codeitup
@codeitup 5 жыл бұрын
a=int(input("Enter Number")) count=0 while(a>0): count=count+1 a=a//10 print(count)
@aksharvikram5787
@aksharvikram5787 5 жыл бұрын
Thanks
@aksharvikram5787
@aksharvikram5787 5 жыл бұрын
@@codeitup it is looking wrong
@codeitup
@codeitup 5 жыл бұрын
@@aksharvikram5787 No, its perfectly alright. Run and see the result.
@aksharvikram5787
@aksharvikram5787 5 жыл бұрын
Write a program to count the number of even and odd number between 1 to 100
@parad0x-21
@parad0x-21 3 жыл бұрын
phele apne sa try keya tha solve kar ne ka x = int(input("enter the number")) x= x*2 sumx=0 i=1 while i
@ManasRana-b8u
@ManasRana-b8u Ай бұрын
sir hmne starting mein (count
@kushagrarajput4661
@kushagrarajput4661 3 жыл бұрын
Sir agar ham n mein 2 ka multiply krke previous video wala method use kre to correct hoga kyaa......... Kyon ki 2 multiply karne se hm last wale even no. Pr pahunch jayenge aisa mujhe lagta h........ Plzzzzz reply...... Aisa kr sakte h kya
@priteshpatel3015
@priteshpatel3015 10 ай бұрын
I did your task of "while" statement task's 10 questions but I want to know that if I want first n odd number's sum then what should I do?
@shruti6512
@shruti6512 9 ай бұрын
set i=3 and i=i+2
@ashishbhuyan2799
@ashishbhuyan2799 4 жыл бұрын
Sir can we write this program as this i=2 sum=0 count=0 while(count
@codeitup
@codeitup 4 жыл бұрын
The code needs some correction which I have done below: n=int(input("Enter Number of terms:")) i=2 sum=0 count=0 while(count
@AakashKumar-gy7hy
@AakashKumar-gy7hy 2 жыл бұрын
Hello sir This program is not working. Please sir I am following your all lactures. Please🙏 sir reply soon.
@adarshnarayan8096
@adarshnarayan8096 2 жыл бұрын
Sir I'm going to kiit and i Haven't r Took computer in my class 12 i have good idea about java is it good if i study your python 130 video playlist to clear basic python
@mayurlavangare9432
@mayurlavangare9432 2 жыл бұрын
continue with java if you're well versed in it.. If you don't like java or find it difficult to understand then only learn python. Don't waste your time in learning every language, Simply master one language first and then see what do you want to be... that is whether you want to be a full stack developer, Software developer, Data analyst, Machine learning or AI , etc...
@adarshnarayan8096
@adarshnarayan8096 2 жыл бұрын
@@mayurlavangare9432 software developer i love coding in java but the problem i am facing is loop otger wise everything is going well
@prithuraj5659
@prithuraj5659 3 жыл бұрын
Apna Bacha liya bhaiya offline exam start hona vala madat milege😂😂😂😂
@codeitup
@codeitup 3 жыл бұрын
😃😃😃😃Thanks Prithu, keep learning!
@im_armanmathur
@im_armanmathur 3 жыл бұрын
Sir but this program us giving sum or numbers upto we .....eg..if I give 5....outcome is 6.....and not the (2+4+6+8+10)=30🙄
@MRAgundli
@MRAgundli Жыл бұрын
again done
@challaharikiran9715
@challaharikiran9715 Жыл бұрын
thk u
@codeitup
@codeitup Жыл бұрын
Welcome!
@suryanshmishra4401
@suryanshmishra4401 2 жыл бұрын
Sir Programs ki playlist alag se bana dijiye
@agrawalrahul018
@agrawalrahul018 Жыл бұрын
n=int(input("Enter the number you want to sum:")) i=0 sum=0 while(i
@Cyberpunkxvii
@Cyberpunkxvii 3 жыл бұрын
Sir what would be the result if we didn't correct count
@codeitup
@codeitup 3 жыл бұрын
Run it and see !
@RishiThalakoti
@RishiThalakoti 3 жыл бұрын
#Program to find the sum of first n even numbers n=int(input("Enter the number=")); i=1; sum=0; while(i
@laladeshmukh3552
@laladeshmukh3552 2 жыл бұрын
Nhi bhai Agar user number ki jagah 100 dalta hai, To apke program ke according Python 100 tak jitne bhi even number aate hai uska sum nikalega Naki 100 even numbers ka
@RishiThalakoti
@RishiThalakoti 2 жыл бұрын
@@laladeshmukh3552 no bro Run the code once
@laladeshmukh3552
@laladeshmukh3552 2 жыл бұрын
@@RishiThalakoti 👍🏻👍🏻👍🏻
@piyush-wm8js
@piyush-wm8js 3 жыл бұрын
Sir can you plz provide the pdf of the notes
@samreenkhan6578
@samreenkhan6578 4 жыл бұрын
Mera iska output nhi aya sir
@codeitup
@codeitup 4 жыл бұрын
Paste your code here, I will make the corrections.
@RahulDas-ml1ny
@RahulDas-ml1ny 4 жыл бұрын
n=int(input()) i=2 sum=0 while i
@codeitup
@codeitup 4 жыл бұрын
Yes, it is Rahul !
@AyushYadav-jc8mg
@AyushYadav-jc8mg Жыл бұрын
i couldnt get y we are we are using count ........i solved it without usinf count function i=2 to n=2n tak using while loop kindly explain count method i want to understand this method too
@KaushikkrSarma
@KaushikkrSarma 4 жыл бұрын
Sir for sum of odd integers we can replace the i%2==0 by i%2!=0 Aisa karne pe vi aaraha he sir ..
@codeitup
@codeitup 4 жыл бұрын
Yes, it will definitely work Kaushik.🙂
@KaushikkrSarma
@KaushikkrSarma 4 жыл бұрын
Thanks a lot for your quick response sir. Your response is a get motivation for us .
@codeitup
@codeitup 4 жыл бұрын
@@KaushikkrSarma Keep Learning Keep Supporting.. :)
@the_indian-
@the_indian- 4 жыл бұрын
Sir to in questions ki playlists banao plz dhoondne nahi a raha hai konsa question kaha hai.
@codeitup
@codeitup 4 жыл бұрын
Dear The Indian, open Python Playlist, every videos are there. I have made tutorial steo by step. First u will find normal programs, then if programs, then while, then for, then list, tuple, dictionary. So you will find in the same order.
@the_indian-
@the_indian- 4 жыл бұрын
@@codeitup OK sir but I am saying make playlists for just that particular questions.
@jyotibharti9619
@jyotibharti9619 4 жыл бұрын
Sir mera run nahi ho raha programming
@shruti6512
@shruti6512 9 ай бұрын
difference between ghis and previous program
@shruti6512
@shruti6512 9 ай бұрын
i think here we are coounting and then adding in previous one we were just adding from 1 to n
@whitedevil9860
@whitedevil9860 4 жыл бұрын
sir app online class lete hai ??
@codeitup
@codeitup 4 жыл бұрын
Yes, going to start from 15 December. For details pls mail to : letscodeup@gmail.com
@shivaniyadav3773
@shivaniyadav3773 4 жыл бұрын
Sir I have a query is this enough for class 12 boards
@codeitup
@codeitup 4 жыл бұрын
Yes shivani !
@lavisharora
@lavisharora 4 жыл бұрын
Hello Anand I am not getting the correct output can you please help with this n = int(input("Enter the number")) i = 1 sum = 0 count = 0 while(count < n): if(n %2 == 0): sum = sum + 1 count = count + 1 i = i + 1 print("Sum is", sum) Output Enter the number4 Sum is 4
@codeitup
@codeitup 4 жыл бұрын
What is this program for?
@lavisharora
@lavisharora 4 жыл бұрын
@@codeitup Python Program to find Sum of First N Even numbers
@codeitup
@codeitup 4 жыл бұрын
@@lavisharora =========sum of first N Even numbers====== n=int(input ("How Many Even Numbers? ") ) i=1 sum=0 while i
@lavisharora
@lavisharora 4 жыл бұрын
​@@codeitup Sorry I didn't understand :- I am running the same program as mentioned in the video above, But I am not getting the correct output for Python Program to find Sum of First N Even Numbers This is the program which I am trying to run :- n = int(input("How many even numbers ? ")) i = 1 sum = 0 count = 0 while(count < n ): if(n %2 == 0): sum = sum + i count = count + 1 i = i + 1 print("Sum is", sum) Output :- How many even numbers ? 4 Sum is 10 I will be really thankful if you can help me with correct /debug code Thanks
@rajsahay3530
@rajsahay3530 3 жыл бұрын
I am also getting wrong output 🥺😔🥺
@MRAgundli
@MRAgundli Жыл бұрын
done
@codeitup
@codeitup Жыл бұрын
👍
@techmaths3377
@techmaths3377 11 ай бұрын
Sir output nhi a rha
@immutable4332
@immutable4332 4 жыл бұрын
sir i am not getting the answer plz help me i am doing same as you but not getting the same answer number = int(input("number")) n=1 sum = 0 count = 0 while count
@codeitup
@codeitup 4 жыл бұрын
The program is perfetly alright !
@immutable4332
@immutable4332 4 жыл бұрын
@@codeitup sir but the answer iam getting is wrong
@ankittakshak7
@ankittakshak7 3 жыл бұрын
In the line of loop While(count
@AdityaGupta-ov5in
@AdityaGupta-ov5in 3 жыл бұрын
@immutable try this n=int(input("enter number")) i=2 sum=0 count=0 while (count
@priyanshipranami2004
@priyanshipranami2004 3 жыл бұрын
Sir hum 'count' kio Lete hai?
@Amitvlogs4u
@Amitvlogs4u 2 жыл бұрын
Sir blurr video a rhi he
@codeitup
@codeitup 2 жыл бұрын
Increase video play quality..
@mohammedilyasilyas1118
@mohammedilyasilyas1118 2 жыл бұрын
😁😁😁
@surjeetraghuwanshi4616
@surjeetraghuwanshi4616 4 жыл бұрын
Vidio must be display in sequence
@codeitup
@codeitup 4 жыл бұрын
All the videos are in sequence, please follow the playlist.
@VickyKumar-qp2di
@VickyKumar-qp2di 2 жыл бұрын
your code are not running sir plz do practical
@ArunKumar-mf9zj
@ArunKumar-mf9zj 4 жыл бұрын
Sir jo sum or count he wo to loop me he hi nahi
@codeitup
@codeitup 4 жыл бұрын
Agar hum loop me sum ya count ko initilaize karenge to wo baar baar jab bhi loop run hoga zero se initialize ho jaega.
@gauravchothe7386
@gauravchothe7386 3 жыл бұрын
Sir == q lagte Ho
@VanshdeepSingh-zg8dh
@VanshdeepSingh-zg8dh 5 ай бұрын
Not working
@rajsahay3530
@rajsahay3530 3 жыл бұрын
Kiska-Kiska output galat aaya hain 😎😎
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 40 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Python Program to Find Product of Digits - In Hindi
7:47
codeitup
Рет қаралды 65 М.
Python Program to Print Even Numbers from 1 to N - In Hindi
9:13
Python Program to Check Armstrong Number
18:08
CodeWithHarry
Рет қаралды 102 М.
The if Statement in Python
18:25
Neso Academy
Рет қаралды 18 М.
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 40 МЛН