Send Close Add comments: (status displays here)
Got it!  This site uses cookies. You consent to this by clicking on "Got it!" or by continuing to use this website.nbsp; Note: This appears on each machine/browser from which this site is accessed.
Bit buckets


1. Bit buckets

2. Bit buckets
Let us look at some programs to use lists to store and print bit information for numbers from zero to some power of 2. For the present purposes, let us use 2 ^ 5 = 32 with numbers 0 to 31.

3. JavaScript code
Here is the JavaScript code.


4. JavaScript output
Here is the output of the JavaScript code.


5. PHP code
Here is the PHP code.


6. PHP output
Here is the output of the PHP code.


7. Python code
Here is the Python code.


8. Python output
Here is the output of the Python code.


9. End of page