A program will input any interger value between 0 and 15 then the algorithm is to convert that value to binary (base2). The number input and its equivalent binary value are to be printed out.
Can anyone show an algorithm representing that?
I know it is something like...lets say if they inputed 11 in the text field it has to be divded by 2, the answer will be 5.5.....then you have to put that 5 over 2 and get 2.2? and then bahhhhh im lost any help guys?




Reply With Quote