Question: i want the solution please (Decimal to Binary conversion) Write a function called Dec2Bin that takes an integer value and print the binary representation of
(Decimal to Binary conversion) Write a function called Dec2Bin that takes an integer value and print the binary representation of this number. For example, given the number 12 , the function should print 1100 . Write a main function that call Dec2Bin function to display the results of converting numbers from 0 to 100 into binary. (Hint: use modulus operator % in the conversion)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
