+ 7

Decimal to Binary conversion

I have this program which accepts decimal number and convert it to its respective binary number. Can any one write this code using php or javascript? https://code.sololearn.com/c2sFwvP1imhu/?ref=app

13th May 2018, 5:04 AM
JULIUS FREDRICK
JULIUS FREDRICK - avatar
2 Antworten
+ 1
$decimal = 14; echo "Binary value: " . decbin($decimal); http://php.net/manual/en/function.decbin.php
13th May 2018, 7:55 AM
Nicolae Crefelean
Nicolae Crefelean - avatar