1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Xelga [282]
2 years ago
14

Write the code in python to ask the user to input two integers. Your program will then print the greatest common divisor of the

two integers. Look at the math module for a function that will help you find the greatest common divisor.
Computers and Technology
1 answer:
Hunter-Best [27]2 years ago
3 0

import math

num1 = int(input("Enter a number: "))

num2 = int(input("Enter a number: "))

print(math.gcd(num1, num2))

The gcd() - greatest common divisor function, which is part of the math module works perfectly in this situation.

You might be interested in
What is the value of x after this statement?<br><br> double x = 2.0 / 5.0;
Step2247 [10]

Answer:

Exact Form:

x

=

2

_

5

Decimal Form:

x = 0.4

Explanation:

5 0
2 years ago
Read 2 more answers
Calculate the voltage between two points of the circuit of an iron through which a current of 4 amps passes and presents a resis
Varvara68 [4.7K]

def voltage_calculation (i, r):

return i*r

3 0
3 years ago
How many unique combinations from 12 bit?
svet-max [94.6K]
This is calculated by raising 2 to the power of the number of bits.

2^12 = 4096
3 0
3 years ago
Explain what the color range ( green and red ) in this interactive map represents
katrin2010 [14]

Answer:

You should send a picture of the map so people can answer directly.

Explanation:

3 0
3 years ago
Which term represents a computational instruction stored in computer memory? A. operator B. opcode C. operand D. command
STALIN [3.7K]

Answer:

B - Opcode

Explanation:

A computational instruction with operands is a command so computational instructions is just an opcode.

5 0
3 years ago
Read 2 more answers
Other questions:
  • Jane is a postproduction crewmember for a film. Her responsibilities include arranging all the scenes that have been shot into t
    7·1 answer
  • Which of the following cannot be copyrighted? a. books b. inventions c. videos d. music
    7·1 answer
  • After reading the article, "The Impact of Technology", answer the following question.
    7·1 answer
  • Save As .csv .html Worksheet tab Format Cells SUM Function Destination cell Home tab AutoFit A. Applies a border or shading to s
    6·1 answer
  • In Florida, no-fault insurance is
    7·1 answer
  • Free points,
    15·2 answers
  • A government agency is getting rid of older workstations. The agency will donate these workstations, along with other excess com
    6·1 answer
  • Look at the picture lol
    6·2 answers
  • Whats the difference between Input and Output? Give and example of an example on a M:B​
    15·1 answer
  • What year does futurist ray kurzweil believe ai will meet human intelligence?.
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!