subject
Computers and Technology, 14.09.2019 09:30 lee9724

Write an algorithm that accepts as its input two numbers, and returns the greatest common divisor (gcd) of those two numbers. note that this is also known as the euclid algorithm and is mentioned briefly in the lecture about algorithms. check out the link on the slides to get a better idea how this works hm since it will show up

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 18:00
Apunishment or the threat of punishment used to enforce conformity. select the best answer from the choices provided t f
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
In which view can you see speaker notes?
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
What is not a type of text format that will automatically be converted by outlook into a hyperlink?
Answers: 1
question
Computers and Technology, 24.06.2019 18:20
Acommon algorithm for converting a decimal number to binary is to repeatedly divide the decimal number by 2 and save the remainder. this division is continued until the result is zero. then, each of the remainders that have been saved are used to construct the binary number.write a recursive java method that implements this algorithm.it will accept a value of int and return a string with the appropriate binary character representation of the decimal number.my code: public class lab16{public string converttobinary(int input){int a; if(input > 0){a = input % 2; return (converttobinary(input / 2) + "" +a); } return ""; } }
Answers: 1
You know the right answer?
Write an algorithm that accepts as its input two numbers, and returns the greatest common divisor (g...
Questions
question
Mathematics, 04.05.2021 17:00
question
Mathematics, 04.05.2021 17:00
Questions on the website: 13722363