2024-07-11
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
Purpose: Convert decimal to binary
Ideas:
First, we calculate the base number by finding the remainder. Similarly, the code also divides and finds the remainder.Division is to get the next dividend, and finding the remainder is to get the base number.
Code:
#include