Creating a binary to decimal converter using while loop | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Creating a binary to decimal converter using while loop

14th Oct 2017, 5:38 AM
Bilal Naeem
Bilal Naeem - avatar
3 Answers
+ 7
I've made such a code, but it uses do while loop. https://code.sololearn.com/cWRp46gtqnSv/?ref=app Edit: I'd putted the opposite code before, now see my code.
14th Oct 2017, 6:53 AM
Lakshay
Lakshay - avatar
+ 1
Binary to Decimal (Base 2 to Base 10) converter in Python using a while loop. https://code.sololearn.com/cP7R90XFv7kE/?ref=app
14th Oct 2017, 7:23 AM
ChaoticDawg
ChaoticDawg - avatar
0
I have also created a code in c++ to convert decimal into binary. It uses only while loops and conditions. https://code.sololearn.com/cbakwV7EX6p1/?ref=app
14th Oct 2017, 7:32 AM
kamran arshad
kamran arshad - avatar