Conversion (Any to Any) question

In this question, are we taking the assumption that the destination number system base and source number system base can only be upto 10?

@anikapassi17_6ce74879d4a8438b no
for reference
first u r given base system of the original no in eg33 is written in base 8 system
u need to convert that to base 2 system
33 in base 8 means 27 in base 10
and 27 in base 2 is 11011 thats what is given

to do this question read about how different base system works and how to convert them

check this https://ide.codingblocks.com/s/657527

Yes, I have done by the same approach, however, for eg we have original number in number system with base 16, then its digits will be 0-9,A,B,C,D,E,F; so our program doesnt cover for that case. So, are we assuming that we will only be getting values of base upto 10?

hi @anikapassi17_6ce74879d4a8438b yup

1 Like