CIS 125

02a – Conversion program

 

Write a program in the programming language of your choice that accepts a user input of an integer between 0 and 255, inclusive, and displays the value converted into binary. (Which is to say, displayed as a series of 1’s and 0’s.) Thus 27 would be displayed as 00011011.

 

Provide your source code and be ready to demonstrate the program in class on a PC.