how do you convert to binary.
i have to write a program that will prompt the user to enter an unlimited(user defined) number positive intergers, the program will convert each positive interger(base 10 value) into its equivalent binary representation and displat each conversation. to exit the program, the user is to ente a negative interger.
the largest enterger value to be used is 15, i also have to create an array of SIZE 4(all array position are to begin with the value '0' in each position).
prompt the user to enter an interger between 0 and 15;
convert the interger to its equivalent binary value;
display the new binary value.
can someone please help me with this and you show me an example.