Skip to content

tastypython/Decimal_to_Binary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Decimal_to_Binary

Ask the user for a number write a program to convert it to binary, use only those things that you have been taught till now. number should be between 1 and 100 Display the number in binary and close the program gracefully. If the user does not give an input, generate a random number and convert to binaRY.

The number given as input is smaller than 16, so you can use only 6 variables to store the dividends and 6 vairiables for remainders .FINISH THIS TASK WITH ONLY THOSE THINGS YOU WERE TAUGHT IN PREVIOUS CLASS. The procedure to convert a number to binary is as follows :

image

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published