1 comment:

  1. ?php
    $nos=$_POST["num"];
    $i=1;
    $bin=0;
    while($nos>=1)
    {$rem=$nos%2;
    $nos=$nos/2;
    $bin=$bin+($i*$rem);
    $i=$i*10;
    }
    echo"binary number is : "."$bin";
    ?>

    ReplyDelete