Define your own function named TenToBinary, which will convert
a base-10 integer to a base-2 integer. The following steps are
required to be implemented in your program: (1) In your main
function, need to read an arbitrary input integer (nonnegative)
from the keyboard; (2) pass the input integer to your function (3)
convert the input integer which is based-10 to base-2; and (4)
print the binary value (base-2) in your own function. An example
is given as follows, which should be the format of your program
output on the console window (screen) after the execution.
we have to write this in c programming.
Comments
Leave a comment