Computers and Technology, 23.09.2021 14:00 lizzyboo32
In C coding, 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.
#include
int main(void) {
/* Type your code here. */
return 0;
}
Answers: 2
Computers and Technology, 22.06.2019 15:30
Whats are the different parts of no verbal comunication, especially body language?
Answers: 3
Computers and Technology, 23.06.2019 13:00
Donnie does not have powerpoint. which method would be best for elana to save and share her presentation as is? a pdf a doc an rtf a ppt
Answers: 3
Computers and Technology, 24.06.2019 07:30
Jason is working on a microsoft excel worksheet and he wants to create a print preview shortcut. his teacher asks him to access the customization option to create the new shortcut. which two tabs should jason select to place the print preview shortcut on the worksheet toolbar? a. new tab (custom) and new group (custom) b. new file tab (custom) and new tab (custom) c. new custom group and new command d. new custom tab and new command
Answers: 2
Computers and Technology, 24.06.2019 12:00
What is a sketch or blueprint of a web page that shows the structure (but not the detailed design) of basic page elements such as the logo, navigation, content, and footer?
Answers: 3
In C coding, write a program that takes in a positive integer as input, and outputs a string of 1's...
Mathematics, 20.08.2019 07:50
Mathematics, 20.08.2019 07:50
Mathematics, 20.08.2019 07:50
Mathematics, 20.08.2019 07:50
History, 20.08.2019 07:50
Mathematics, 20.08.2019 07:50
Physics, 20.08.2019 07:50
English, 20.08.2019 07:50
Mathematics, 20.08.2019 07:50
Mathematics, 20.08.2019 07:50
Social Studies, 20.08.2019 07:50
Social Studies, 20.08.2019 07:50