Computers and Technology, 17.02.2021 14:10 Woodsydal2390
Write a program that takes in a positive integer as input, and outputs a string of 1's and 0's representing the integer in binary. For an integer x, the algorithm is:
As long as x is greater than 0
Output x % 2 (remainder is either 0 or 1)
x = x / 2
Note: The above algorithm outputs the 0's and 1's in reverse order.
Ex: If the input is:
6
the output is:
011
6 in binary is 110; the algorithm outputs the bits in reverse. "C programming"
Answers: 3
Computers and Technology, 22.06.2019 19:30, ibrahimuskalel
Avariable definition defines the name of a variable that will be used in a program, as well as
Answers: 3
Computers and Technology, 24.06.2019 18:30, Suttyyyyyybear6056
What are the benefits to using presentations to organize and deliver information in the workplace? they add visual appeal. they are easy to update. they ensure accuracy. they can be created quickly. the work can't be lost.
Answers: 1
Write a program that takes in a positive integer as input, and outputs a string of 1's and 0's repre...
Mathematics, 08.05.2021 01:00
English, 08.05.2021 01:00
Mathematics, 08.05.2021 01:00
Mathematics, 08.05.2021 01:00
Mathematics, 08.05.2021 01:00