0 تصويتات
بواسطة
Start
Input: number

Iteration (while number is greater than zero)
1.1 Find out the remainder after dividing the number by 2
1.2 Print the remainder
1.3 Divide the number by 2


End the iteration
End
The above Algorithm is used to:
(a) To find Reverse of a string.
(b) Converting a decimal number into a binary number
(c) Converting a Binary number into a Decimal number
(d) None of the above

1 إجابة واحدة

0 تصويتات
بواسطة
(b) Converting a decimal number into a binary number
مرحبًا بك إلى ثعلب، حيث يمكنك طرح الأسئلة وانتظار الإجابة عليها من المستخدمين الآخرين.
...