Write A C++ Program Convert Decimal Number To Binary Number Using Loop
Logic :
We can use array for such type of problem run a loop until number != to 1 and divide a number by 2 and store reminder in array and repeat this process until end after that print array in reverse .
Output:
Enter a Number To Convert In Binary :
15
The Binary Conversion Of 15 is 1111
need an explanation for this answer? contact us directly to get an explanation for this answer