No products in the cart.

Write python code .Compute the greatest …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Write python code .Compute the greatest common divisor and least common multiple of two integers.
  • 1 answers

First Name 3 years, 10 months ago

a = int(input("Enter integer 1 : "))
b = int(input("Enter integer 2 : "))
for i in range(1,a+b):
⠀⠀⠀if a%i==0 and b%i==0:
⠀⠀⠀⠀⠀⠀⠀s=i
print("Greatest common integer = ",s)
http://mycbseguide.com/examin8/

Related Questions

What is alu
  • 1 answers
Write a program for swapping two numbers
  • 1 answers
Write a program for swapping two numbers?
  • 0 answers
Define packages
  • 0 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App