Question: 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 afor

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 afor loop, determine the greatest common divisor between the two integers. The greatest common divisorgcd) 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 c program y/gcd will have no remainder You should output both random numbers and the gcd that the program calculated for vou 2.Write a program that will use a random number generatox(seeded with time) to generate a number between 1 and 75 into a variable called Num(datatype int). Then, in a do-while loop. the program should put the original number in a variable called lastNum(datatype int), and generate a new number to be stored in Num. This should continue until Num and lastNum are consecutive integers with lastNum being 1 smaller than Num. Keep a count of the number of iterations of the loop it took for this to happen. You should output lastNum and Num, as well as the count of how many times it took for the do-while loop accomplish this
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
