+ 9

[ASSIGNMENT] 🏅🏆Convert Decimal to Binary🏆🏅

Make a program that will convert the decimal number to a binary number. example: input = 6 output = 110 input = 3 output = 11 Here is my try in java: https://code.sololearn.com/cT6SXVU2euI8/?ref=app

29th Oct 2017, 6:15 PM
Avi Rzayev
Avi Rzayev - avatar
17 Answers
+ 22
https://code.sololearn.com/chxRsKef9Z0Z/?ref=app
24th Mar 2018, 6:44 AM
MeanMachine
MeanMachine - avatar
22nd Mar 2018, 12:14 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 18
https://code.sololearn.com/c4jFEuUDt0Kz/?ref=app
22nd Mar 2018, 10:43 AM
Danijel Ivanović
Danijel Ivanović - avatar
+ 14
Ruby: puts gets.to_i.to_s(2)
30th Oct 2017, 12:55 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 9
Lol i just finished a code about this! https://code.sololearn.com/coKLNTzAuZn1/?ref=app
11th Nov 2017, 4:05 PM
AZTECCO
AZTECCO - avatar
+ 5
Python: print(bin(int(input()))[2:])
30th Oct 2017, 1:18 AM
Kartikey Sahu
Kartikey Sahu - avatar
+ 3
JavaScript: var a = parseInt(prompt("Enter your number:")); alert(a.toString(2));
30th Oct 2017, 1:55 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 2
https://code.sololearn.com/cyAev5qZwGLk/?ref=app
30th Oct 2017, 12:56 AM
Marfik Em
Marfik Em - avatar
+ 1
https://code.sololearn.com/cvGYAsyjXv93/?ref=app recursion
29th Oct 2017, 6:50 PM
WildGeese
WildGeese - avatar
+ 1
29th Oct 2017, 8:09 PM
Nope
Nope - avatar
30th Oct 2017, 1:27 AM
Girish Tulabandu
Girish Tulabandu - avatar
0
https://code.sololearn.com/cRK1twdIVa3Z/?ref=app
30th Oct 2017, 7:53 AM
D' Ravelens
D' Ravelens - avatar
30th Oct 2017, 5:57 PM
PongWithBreakout
PongWithBreakout - avatar