HCF/GCD of Two Numbers Python Program

preview_player
Показать описание


WsCube Tech is a leading Web, Mobile App & Digital Marketing company, and institute in India.

We help businesses of all sizes to build their online presence, grow their business, and reach new heights.

All the courses are job-oriented, up-to-date with the latest algorithms and modules, fully practical, and provide you hands-on projects.

📞 For more info about the courses, call us: +91-7878985501, +91-9269698122

✅ CONNECT WITH THE FOUNDER (Mr. Kushagra Bhatia) -

Connect with WsCube Tech on social media for the latest offers, promos, job vacancies, and much more:

--------------------------------------| Thanks |---------------------------
#python #pythontutorials #pythonprogramming
Рекомендации по теме
Комментарии
Автор

😎Hey, thanks for watching! We’d love to know your thoughts/doubts here in the comments.

wscubetech
Автор

Finally a video that I can understand. Please make a video on how to create 2d array

aayushpathak
Автор

num1 = int(input("Enter first number:"))
num2 = int(input("Enter second number:"))
hcf=1
for i in range(1, min(num1, num2)+1):
if(num1%i==0 and num2%i==0):
hcf=i
print("The HCF/GCD of", num1, "and", num2, "is:", hcf)

aayushk
Автор

Hello team, There is a BUG in Code . If Some one tries to find HCF of two numbers which have no common factor then result should
be "1". But It will show wrong result. To Correct this an else Statement should be added that will take the case if number have
no common factor. In Such case It should return '1'.

un-coding
Автор

that code not optimized for big number

MrVaibhavv
Автор

Hello what is the fees and course duration of python programming , can non coding bg student do this course

Dushyantdigital
Автор

jab pehla number bada le rhe hain doosre se to error dikha rha hai

PiyushYadav-kydn
welcome to shbcf.ru