Program to calculate HCF/GCD of two numbers | Python Programming |

  Рет қаралды 18,457

Anjali Luthra

Anjali Luthra

Күн бұрын

Пікірлер: 78
@aries2464
@aries2464 3 жыл бұрын
print("enter two nos to calculate hcf") a=int(input("enter first no. ")) b=int(input("enter second no. ")) if(a>b): while a %b != 0: rem=a%b a=b b=rem print(" HCF is ",b) else: while b%a !=0: rem=b%a b=a a =rem print(" HCF is",a)
@gaurigoel3068
@gaurigoel3068 3 жыл бұрын
Nice explanation
@supriyomondol
@supriyomondol 3 жыл бұрын
What if I enter first number smaller than second number .. I believe we should first check smaller number and then run the while loop.
@abhinavkesarwani6810
@abhinavkesarwani6810 3 жыл бұрын
Really mam you are teaching awesome
@ritam4382
@ritam4382 4 жыл бұрын
But this program is "wrong" when we take two numbers whose HCF is 1, like HCF of 6 and 7 and etc etc..
@H28-u3u
@H28-u3u 3 жыл бұрын
same problem bro..
@AECcomputers
@AECcomputers 2 жыл бұрын
It will work for 6 and 7 and give 1 as hcf
@SagarPawar-nq9pr
@SagarPawar-nq9pr 3 жыл бұрын
Mam really you are superb... 💕💕👍🏻👍🏻 The way you like teach us is very interesting... 👍🏻👍🏻
@vishalmishra9885
@vishalmishra9885 5 жыл бұрын
Thanks so much for this video.... Mam... 👍👍
@nehakhanzode8569
@nehakhanzode8569 5 жыл бұрын
You made difficult path easier. Thank you so much @Anjali Luthra mam!
@mdafroj8546
@mdafroj8546 Жыл бұрын
Thank you mam 😎😍💝😍
@deadiusgaming4833
@deadiusgaming4833 5 жыл бұрын
Hi mam very nice informing python language.
@vishalmishra9885
@vishalmishra9885 5 жыл бұрын
+91 92125 35516 ye lo... Mam ka No... Bhai... But Mam to reply nhi krte.... Hai bahi...
@shimulsarkar9250
@shimulsarkar9250 3 жыл бұрын
Great logic💜
@AkashYadav-xb4uy
@AkashYadav-xb4uy 5 жыл бұрын
Very well explained thank you so much ma'am🙂🙂🙂🙂
@madhvendra8194
@madhvendra8194 5 жыл бұрын
Congratulations on 9k subscribers mam... 10k soon... 😊💓 Love u a lot mam... Thank-you
@ssmodani
@ssmodani 4 жыл бұрын
i found it easy but before i was afraid of it so it's nice tutorial
@Kartikyadav-bu7qc
@Kartikyadav-bu7qc 4 жыл бұрын
THANKS A LOT MA'AM....VERY NICE VIDEOS
@rakibulislam2452
@rakibulislam2452 5 жыл бұрын
nice logic madam.
@adarshkanojia4192
@adarshkanojia4192 5 жыл бұрын
Simple interest , prime numbers, fabonacii series , compound interest,factorial issee bataiye mam
@thehumans8237
@thehumans8237 3 жыл бұрын
thanks mam
@hiteshyadav7759
@hiteshyadav7759 3 жыл бұрын
thanks
@abuobaida5375
@abuobaida5375 4 жыл бұрын
Thank you maam ,from Pakistan
@AECcomputers
@AECcomputers 4 жыл бұрын
Most Welcome
@untitled6483
@untitled6483 4 жыл бұрын
Thank you mam for making it easy
@jinks3669
@jinks3669 4 жыл бұрын
Thank you ma'am.
@pradeepdwivedi266
@pradeepdwivedi266 4 жыл бұрын
Mam but we necessarily need to put a larger than b or the progrmme wont work we must use if else to fix which one is larger to fix the modulus argument
@AECcomputers
@AECcomputers 4 жыл бұрын
Program will fix that of it's own, will work one extra iteration in that case
@pradeepdwivedi266
@pradeepdwivedi266 4 жыл бұрын
@@AECcomputers Mam so, in the first iteration the biger number will multiply with 0 to give the first number as remainder and then the two numbers just switch? am i right mam....And thank u maM!
@zafareqbal41
@zafareqbal41 5 жыл бұрын
Hi Mam, This is Zafar, I want to know is this the correct way to find HCF of Three numbers in python: print ("Enter number to find HCF") n1 = int(input("Enter first number ")) n2 = int(input("Enter 2nd number ")) n3 = int(input("Enter 3rd number ")) while n1%n2 !=0: remainder = n1%n2 n1=n2 n2=remainder #print("HCF is ",n2) hcf = n2 n1=n3 n3=hcf print ("HCF of n1,n2,n3 is" , n3)
@RITESHKUMAR-fn6rh
@RITESHKUMAR-fn6rh 4 жыл бұрын
Ma'am this all video is enough for class 12th board 2020 plzz tell me🤔
@VikasKumar-my9rr
@VikasKumar-my9rr 4 жыл бұрын
Mam pahle theory pade ya programmes dhekhe
@suchitakumari9920
@suchitakumari9920 4 жыл бұрын
Mam plzzz series par videos bnayi plz..mere sir bhout series par ques dete h..jese 1-2+4------ aese series dete h muje kch smj nahi aata or youtube par kisi bhi channel par series ni karate h plzz mam help me out plzz
@rudranshvyas7539
@rudranshvyas7539 3 жыл бұрын
Mam can you please upload how can we implement Bayes theorem using python
@adityasethi2436
@adityasethi2436 3 жыл бұрын
if B>A in that case what will we do
@ssmodani
@ssmodani 4 жыл бұрын
mam it's showing error when i write rem...can you pls tell what should i do?
@VikasKumar-my9rr
@VikasKumar-my9rr 4 жыл бұрын
Mam yaha ham define nhi karege kuch
@kacpermokrzycki2144
@kacpermokrzycki2144 3 жыл бұрын
Shorter def GCD(a,b): return a if b==0 else GCD(b,a%b) If anyone is obsessed with shortcode :))
@AshishYadav-hh5tb
@AshishYadav-hh5tb 5 жыл бұрын
Thanku mam😍
@deepaknayak85init2
@deepaknayak85init2 4 жыл бұрын
Mam how to use flag method in a program and find the number of words in a string .. lets take Deepak Kumar Nayak and the output will be 3.. how to do it using flag method ..!! Plz explain this by giving an example .. Thank You .!!
@AECcomputers
@AECcomputers 4 жыл бұрын
You can keep a counter or can do it using dictionary also
@srishtipandey5101
@srishtipandey5101 3 жыл бұрын
Ma'am how can we do this program using recursion
@rakeshpatil867
@rakeshpatil867 3 жыл бұрын
How to do program when number are more than two numbers????
@hacksman1066
@hacksman1066 4 жыл бұрын
Luv u ma'am 😘 u hav our full support ❣️
@syed1224.
@syed1224. 4 жыл бұрын
HCF recursion se bi kr skte h HOW can u please upload the video in which I learn computing GCD recursively...
@yadav_2220_
@yadav_2220_ 4 жыл бұрын
Are madam aaj mila mujhe channel shi btay ro diye 11 me aj se shuru kr rhe... Maam please tell these all 93 vidios will be helpful to score good marks in 12th board???
@AECcomputers
@AECcomputers 4 жыл бұрын
Yes, 12 k complete lectures upload honge don't worry
@yadav_2220_
@yadav_2220_ 4 жыл бұрын
@@AECcomputers thanku so much mam 🙏 🙏🙏🙏🙏when i it will start?
@rohanpawar8959
@rohanpawar8959 4 жыл бұрын
How to use Python in android mobile?
@ashoktiwari7501
@ashoktiwari7501 4 жыл бұрын
GG
@yadav_2220_
@yadav_2220_ 4 жыл бұрын
Is these will be helpful for 12th board???
@AECcomputers
@AECcomputers 4 жыл бұрын
Computer Science yes. Not for I.P
@yadav_2220_
@yadav_2220_ 4 жыл бұрын
@@AECcomputers Mam please python class 12th start kr dijiye jldi se nhi to cs ki wjh se percentage kam ho jayga😔
@mirmir5813
@mirmir5813 5 жыл бұрын
Mam wt abt 20 and 36
@Arindam_Mukherjee98
@Arindam_Mukherjee98 5 жыл бұрын
It same as lcm jst reverse the loop
@pradumchauhan473
@pradumchauhan473 5 жыл бұрын
Mam mai c language me tow number ko add karane ka program bana leta hu kya mai Python sik sakta hu ..... I,m goting Python....
@AECcomputers
@AECcomputers 5 жыл бұрын
Yes
@Arindam_Mukherjee98
@Arindam_Mukherjee98 5 жыл бұрын
We do it in more easier way 😎
@vishalmishra9885
@vishalmishra9885 5 жыл бұрын
Mam python ka syllabus nahi hai....... Na... BCA.... Ma....
@AECcomputers
@AECcomputers 5 жыл бұрын
Nahi. Bca main nahi hai abhi
@sadafanjum9030
@sadafanjum9030 4 жыл бұрын
First no Should.be greater than second
@Anjanasafar6433
@Anjanasafar6433 2 жыл бұрын
L.c.m ka v bta dijiye mam
@AECcomputers
@AECcomputers 2 жыл бұрын
Check the 100 days coding challenge playlist. Its done in that
@sayansagar6868
@sayansagar6868 5 жыл бұрын
Madam Newton raphson ka ek video banaye plzzzzzzz
@official_praveenyadav
@official_praveenyadav 5 жыл бұрын
Ip 50 day schedule mam please
@HAMEEDKHAN-hx2vw
@HAMEEDKHAN-hx2vw 4 жыл бұрын
Can any one explain me 50 and 20 GCD explaination please tell me with the second method application in video
@pradeepdwivedi266
@pradeepdwivedi266 4 жыл бұрын
Bro like u first divide 50 by 20 u get remainder 10. then u divide 20 by 10 u get rem 0:Implies that 10 is the hcf
@GadgetMeta
@GadgetMeta 5 жыл бұрын
Upload more
@artysun2739
@artysun2739 4 жыл бұрын
I'm trying to get a computer
@ashoktiwari7501
@ashoktiwari7501 4 жыл бұрын
A
@ashoktiwari7501
@ashoktiwari7501 4 жыл бұрын
S
@dipukarmakar7930
@dipukarmakar7930 3 жыл бұрын
Mam video quality😭😭😭😭
@charu9065
@charu9065 4 жыл бұрын
100th like 😎😎
@ashoktiwari7501
@ashoktiwari7501 4 жыл бұрын
K
@NitinKumar-vw9gb
@NitinKumar-vw9gb 4 жыл бұрын
Good ma 👌👌 mam have you solve python question that I had been sent U on ur email id ,,earlier ,pls send me answer please mam
@ashoktiwari7501
@ashoktiwari7501 4 жыл бұрын
T
@ashoktiwari7501
@ashoktiwari7501 4 жыл бұрын
H
Python Tutorials - Program To Find out the GCD of Two Positive Numbers
13:11
Good teacher wows kids with practical examples #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 13 МЛН
Will A Basketball Boat Hold My Weight?
00:30
MrBeast
Рет қаралды 99 МЛН
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 80 МЛН
Python Decorators in 15 Minutes
15:14
Kite
Рет қаралды 447 М.
How to study SO EFFICIENTLY people think you CHEAT 😡
12:09
Program To Calculate LCM Of Two Numbers | Python Tutorials
19:20
Amulya's Academy
Рет қаралды 64 М.
I reverse engineered Next to find what they are hiding
29:48
Theo - t3․gg
Рет қаралды 12 М.
Python Program #26 - Find HCF or GCD using Euclidean algorithm
6:08
Programming For Beginners
Рет қаралды 3,3 М.
Good teacher wows kids with practical examples #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 13 МЛН