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.

Answers

Answer 1

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.


Related Questions

What will you see on the next line?
>>> int(13.6)

Answers

Answer:

[tex]\huge\boxed{\texttt{13}}[/tex]

Explanation:

If we input [tex]\texttt{int(13.6)}[/tex] into bash (say python3), we will return with 13.

Why?

The [tex]\texttt{int()}[/tex] function of python basically stands for integer. It will convert whatever is inside the parentheses to an integer. This works with strings as well, and can be useful for turning strings into numbers readable by a program.

An integer is any real whole number (like -2048, 0, or 6, etc.) However, Python does not round the number based on whether it's closest to one value or not. Python always rounds down, basically what it does is takes away the decimal from the number.

If you would like to round to up, however, you might have a program that does this.

[tex]\texttt{import math}[/tex]

[tex]\texttt{int(math.ceil(5.7))}[/tex]

Hope this helped!

Answer:
13

I hope this helped :)

what is the main difference between a search bar and a web browser

Answers

Answer:

i think a search is search bar is looking for application and files that are in the system while web browser is for searching things that are not in ur pc or laptop but searching thing i a good example google

Wilma is looking for facts about social media for her research project. What fact should she use for her project? a Communicating with social media is hard b Social media is a great way to communicate. c Social media is fun and easy to use. d The minimum age for some social media sites is 13. please help me and i will give you 5 stars

Answers

Answer:

d.

Explanation:

Out of all of the options listed, the only choice that is actually a fact would be that the minimum age for some social media sites is 13. This is because this age restriction is not set by the social media sites but instead by the Children's Online Privacy Protection Act (COPPA) within the US. The other options are all personal opinion, the most accurate of which is that "Social media is a great way to communicate." which there can still be someone with an opposing argument which means that it is not factual but instead it is an opinion.

Which of the following is not one of the views available in the PowerPoint application?

Show View
Slide Sorter
Notes Page
Reading Pane

Answers

Answer:

A. Show View

Explanation:

PowerPoint application can be defined as a software application or program designed and developed by Microsoft, to avail users the ability to create various slides containing textual and multimedia informations that can be used during a presentation.

Some of the features available on Microsoft PowerPoint are narrations, transition effects, custom slideshows, animation effects, formatting options etc.

Basically, the views that are available on the Microsoft PowerPoint application includes;

1. Slide Sorter.

2. Notes Page.

3. Reading Pane.

Hence, show view is not one of the views available in the PowerPoint application.

Other Questions
What is the value of x? I NEED HELPS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! UWUjeremy has a handful of resisters and all of them except one have for bands the exception has three why? Why can prime number be a multiple of any other number except itself The emperor was elected by the _____________ but tradition dictated that he would be a Mexica man. *congresscouncilkingconfederation Sam needs to create a spreadsheet for his coworkers. They will need to follow across a long row of data. Sam would like to make his spreadsheet easy to read. Sam should _____. who has legitimate cause to fear the court or other public systems? Dr. Jones has a new patient from India, Mala. Dr. Jones mentions her fondness for Indian food and clothes, She is thrilled when Mala invites herhome to teach her some family recipes and how to wear a saree. Which quality is Dr. Jones exhibiting?A. communicationB. understandingC. respectD.ethicsE. curiosity compare and contrast the stories of Shells and also The Best Community Service Project Ever stories travels only on Saturdays and Sundays and has miles this month. Travels every weekday and has miles this month. If they each travel about the same number of miles each day, who travels more miles per day for this month? James paid 13.20 for 12 mangoes. For every 5 mangoes that he bought he got one mango free. Mary wants to by 4 mangoes from the same shop. She only has $5.10. How much more money does she need Evaluate each value expression for the given value of x: 11 + x, x=12 What is one-half divided by one-eight?Please use fractionsI'll give brainliest if it's right and you show ur work How can a shortage of nutrients harm organisms in an ecosystem? How can an excess of nutrients harm organisms in an ecosystem? Give an example of each scenario to support your answers. which are parts of the Jewish covenant with god?(check all that apply)A. the five pillars are a set of duties for all believers.B. there is a central religious authority that guides belief.C. the Israelites are god's chosen people.D. Jews will have Israel as their homeland. What is (4-5y) - (2y-16) As the fruit develops, why do the petals, stamen, and sepals fall off? A. The fruit absorbs them, which gives the fruit its color. B. They have served their purpose and are no longer needed by the plant. C. The material in the petals, stamen, and sepals become the skin of the fruit. D. The flower has become dehydrated. can Someone help me can someone please help me?? ill make you a brainliest. what is the iupac name of CH3-CH2CH(CH3)CH2-COOH Example sentencePlease vote! Your opinions matter.What does matter mean in this sentence?