+ 19
[ASSIGNMENT] :: Binary to Decimal && Octal Number
The octal numeral system, or oct for short, is the base-8 number system, and uses the digits 0 to 7. For example:- Input :-110011 Output :- Decimal number :- 51 Octal Number : 53 1.Make a program to convert a binary number into an octal number. 2.Make a program to convert a Binary number into decimal first then to an octal number. Already submitted as an assignment. Here is my answer. https://code.sololearn.com/cabuOcR65AIQ/?ref=app
10 Answers
+ 12
https://code.sololearn.com/cxJKa3Y34hnW/?ref=app
+ 9
You can use this, it convert any numbers to any base you want:
https://code.sololearn.com/cLloJ7hePPti/?ref=app
+ 9
My old code.. converts to every base..
https://code.sololearn.com/cLlqQ5bQ0Ztt/?ref=app
+ 7
https://code.sololearn.com/cx4g9kW7Nr18/?ref=app
+ 6
I will tryđ
+ 5
https://code.sololearn.com/cCm3q1nU9yQS/?ref=app
+ 4
C++ Use stoi() then setbase()
https://code.sololearn.com/cNtP3Q7whS3o