Q1. Write an algorithm, draw a flow chart and write its corresponding C program to convert a decimal number to its equivalent Binary number.
- Decimal to binary conversion uses repeated division by 2.
- Remainders of each division form the binary digits (0 or 1).
- Binary digits must be read/printed in reverse order of calculation.
- C's modulo operator (`%`) gets remainder, integer division (`/`) updates number.
Answer: Converting a decimal number to its equivalent binary number is a fundamental concept in computer programming, often explored in courses like MCS-201. This conversion is achieved through the method of repeated division by the base of the target system, which is 2 for binary. The remainders generated at each step, when read in reverse order, form the binary equivalent. ### Algorithm to Convert Decimal to Binary The algorithm employs the principle of successive division by 2. Each division yields ...