+ 4
#Conversion from binary to decimal#
Crate a program that, inserted a binary number (ex. 101), converts it to decimal (in this case 7). Input: 111 101 1010 1111 Output: 7 5 10 15 https://code.sololearn.com/ca212aa8mi5O/?ref=app
32 Answers
+ 8
https://code.sololearn.com/c1toP8xl4T9x/?ref=app
+ 12
It's exciting when old codes come in handy
https://code.sololearn.com/cJ3pG1dZTwv6/?ref=app
+ 7
yeah for some time 😊😊 I m just a beginner 😊😊
+ 6
https://code.sololearn.com/WIs5j9w2caDT/#js
other than changing binary numbers to decimal numbers, it works just fine for other bases... Thanks for the challenge though
+ 3
I don't feel like creating this in the playground because it's so short
std::string bin;
std::cin >> bin;
std::cout << std::stoi( bin, nullptr, 2 );
+ 2
i want to help to creat code that computes number of bits of a number represents a binary sequence
+ 2
please
+ 2
i don't understand how i do it i just beginner and i need it for my school 😕😕
+ 2
i don't understand how i do it i just beginner and i need it for my school 😕😕
+ 2
ok thank u 😊😊
+ 2
i need i code to read a binary number not decimal 😕 and computes number of bits =1
+ 2
no cumptes just 1 like if i input 110101 it will output 4
+ 2
thank u so much . i did it , ihave a probleme with an other code now 😅😅
+ 2
hi.do you have a pascal triangle code please 😢.
+ 2
thanks😊
+ 1
@GAWEN STEASY You are really awesome! Are you the second one in global ranking?
+ 1
just a beginner... I'm a beginner too, but your level is really high! When did you start programming?
+ 1
@Dennis, you are a geniouse.