1.) The following is the algorithm to convert a decimal number (int) to a binary number Ex: Convert 13 to 1101 a) First divide the integer number by 2, (binary is base 2). Ex: int num 5; int base 2; 5 2 2 with a remainder of 1 b) Write
OR
OR
1.) The following is the algorithm to convert a decimal number (int) to a binary number Ex: Convert 13 to 1101 a) First divide the integer number by 2, (binary is base 2). Ex: int num 5; int base 2; 5 2 2 with a remainder of 1 b) Write