i am converting a base 10 number to base 4, guide me in this case please.

Recommended Answers

All 3 Replies

Can you do it on paper? Knowing how to solve the problem manually is paramount if you want to tell the computer how to do it.

i know how to do that in paper, take an example, like 55 in base 10.
4 | 55
4 |13 - 3
|3 - 1

please tell me how can i collect remainders in c++. ? thanks.

use the % operator

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.