Answer:
6=110
13=1101
18=10010
27=11011
Explanation:
A decimal number is converted to binary number by constantly dividing the decimal number by 2 till the number becomes zero and then write the remainders in reverse order of obtaining them.Then we will get our binary number.
I will provide you 1 example:-
18/2 = 9 the remainder =0
9/2 = 4 the remainder =1
4/2 = 2 the remainder =0
2/2 = 1 the remainder =0
1/2 = 0 the remainder =1
Writing the remainder in reverse order 10010 hence it is the binary equivalent of 18.
Answer:
The IBM 1401 is a variable-word length decimal computer that was announced by IBM on October 5, 1959.
<span>Black sockets should be used, but the color is not the reason why. Chrome sockets will cause splits to form in the socket walls pretty quickly, after only a few uses. But the black sockets are that color because they have gone through a process called Parkerizing that coats the surface of the socket in order to provide more resistance when being used and protect the socket against corrosion.</span>
The correct debugged code is attached below
<h3>What is a leap year </h3>
A leap year is a year with 366 days and this year occurs once every 4 years. The debugged code line of code of the program written, is as attached below. because the line of code in the question lacks some functions and symbols
Hence we can conclude that the correct debugged code is attached below.
Learn more about Python coding : brainly.com/question/16397886
#SPJ1
Answer:
The output of code is 20.
Explanation:
We need to give output of the following code:
numB = 25
while numB > 13:
numB = numB - 5
print(numB)
Solution:
We will check the condition of while loop, if the condition is true, then the statements inside the loop will be executed. Since brackets are not available so, only one statement is linked with while loop.
Executing the statements, we check condition while numB > 13 (25>13) is true, next statement will be executed numB = numB - 5 (20=25-13) so, when print(numB) will be executed, we will get 20.
The output of code is 20.