+ 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

19th Dec 2017, 8:07 PM
CuriousCI
CuriousCI - avatar
32 Antworten
+ 8
https://code.sololearn.com/c1toP8xl4T9x/?ref=app
19th Dec 2017, 8:31 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 12
It's exciting when old codes come in handy https://code.sololearn.com/cJ3pG1dZTwv6/?ref=app
20th Dec 2017, 8:28 AM
Justine Ogaraku
Justine Ogaraku - avatar
+ 7
yeah for some time 😊😊 I m just a beginner 😊😊
19th Dec 2017, 8:37 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 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
20th Dec 2017, 2:51 PM
Ng Ju Ping
Ng Ju Ping - avatar
+ 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 );
19th Dec 2017, 8:39 PM
Dennis
Dennis - avatar
21st Dec 2017, 7:15 PM
Markus R
Markus R - avatar
+ 2
i want to help to creat code that computes number of bits of a number represents a binary sequence
20th Dec 2017, 8:45 PM
Mohamed Maarouf
+ 2
please
20th Dec 2017, 8:46 PM
Mohamed Maarouf
+ 2
i don't understand how i do it i just beginner and i need it for my school 😕😕
20th Dec 2017, 9:03 PM
Mohamed Maarouf
+ 2
i don't understand how i do it i just beginner and i need it for my school 😕😕
20th Dec 2017, 9:03 PM
Mohamed Maarouf
+ 2
ok thank u 😊😊
20th Dec 2017, 9:05 PM
Mohamed Maarouf
+ 2
i need i code to read a binary number not decimal 😕 and computes number of bits =1
20th Dec 2017, 9:08 PM
Mohamed Maarouf
+ 2
no cumptes just 1 like if i input 110101 it will output 4
20th Dec 2017, 9:14 PM
Mohamed Maarouf
+ 2
thank u so much . i did it , ihave a probleme with an other code now 😅😅
21st Dec 2017, 4:35 PM
Mohamed Maarouf
+ 2
hi.do you have a pascal triangle code please 😢.
22nd Dec 2017, 2:49 PM
Mohamed Maarouf
+ 2
thanks😊
22nd Dec 2017, 2:54 PM
Mohamed Maarouf
+ 1
@GAWEN STEASY You are really awesome! Are you the second one in global ranking?
19th Dec 2017, 8:35 PM
CuriousCI
CuriousCI - avatar
+ 1
just a beginner... I'm a beginner too, but your level is really high! When did you start programming?
19th Dec 2017, 8:40 PM
CuriousCI
CuriousCI - avatar
+ 1
@Dennis, you are a geniouse.
19th Dec 2017, 8:45 PM
CuriousCI
CuriousCI - avatar