subject

1. write a program that will use the random number generator, seeded with time, to generate two random integers between 10 and 100. then using a for loop, determine the greatest common divisor between the two integers. the greatest common divisor(gcd) between two numbers, x and y, is the largest number that will divide evenly into both x and y. or in math terms…. x/gcd will have no remainder and y/gcd will have no remainder you should output both random numbers and the gcd that the program calculated for you.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
Ihave an iphone 8plus should i get another phone like samsung note 9 or s9 ? ?
Answers: 2
question
Computers and Technology, 22.06.2019 21:00
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings starting from index 0. for each match, add one point to userscore. upon a mismatch, exit the loop using a break statement. assume simonpattern and userpattern are always the same length. ex: the following patterns yield a userscore of 4: simonpattern: rrgbryybgy userpattern: rrgbbrybgy
Answers: 2
question
Computers and Technology, 23.06.2019 01:30
In deadlock avoidance using banker’s algorithm, what would be the consequence(s) of: (i) a process declaring its maximum need as maximum possible for each resource. in other words, if a resource a has 5 instances, then each process declares its maximum need as 5. (ii) a process declaring its minimum needs as maximum needs. for example, a process may need 2-5 instances of resource a. but it declares its maximum need as 2.
Answers: 3
question
Computers and Technology, 23.06.2019 14:00
In which job role will you be creating e-papers, newsletters and preiodicals
Answers: 1
You know the right answer?
1. write a program that will use the random number generator, seeded with time, to generate two rand...
Questions
question
History, 23.08.2019 16:20
question
Geography, 23.08.2019 16:20
question
Biology, 23.08.2019 16:20
question
Mathematics, 23.08.2019 16:20
question
Health, 23.08.2019 16:20
question
Chemistry, 23.08.2019 16:20
Questions on the website: 13722367