subject

Please hel. Rearrange the parts of the program to generate two random integers and then ask the user to guess the greatest common divisor. First part
Second part
Fourth part
Third part

1. from math import gcd
from random import randrange

numA=randrange(6,50,2)

numB = randrange(6,30,2)

if guess ==

print("Good job! You are right.")

print("The right answer is",answer)

answer = gcd(numA, numB)
guess = input("Greatest common divisor of " + str(numA) + " and " + str(numB) + "? " )

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 15:10
What is word processing and word wrap?
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
To check spelling errors in a document, the word application uses the to determine appropriate spelling. internet built-in dictionary user-defined words other text in the document
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 2
question
Computers and Technology, 24.06.2019 09:00
Why might you chose to crest a function resume
Answers: 1
You know the right answer?
Please hel. Rearrange the parts of the program to generate two random integers and then ask the user...
Questions
question
Mathematics, 21.09.2021 23:50
question
Mathematics, 21.09.2021 23:50
question
Mathematics, 21.09.2021 23:50
question
Mathematics, 21.09.2021 23:50
question
Spanish, 21.09.2021 23:50
Questions on the website: 13722359