0

Hey guys Im trying to create a code where:

input A: number

Input B: Base

Print: Decimal form

I am going to use algorithm where u do following:

NUMBER % BASE

but it would do it the number of times that the base is..

so if its 6 (base 2)

6%2 0

3%2 1

1%2 1

print 110

What I was thinking is this..do the % ammount of times=base..so if its 5 do it 5 times..and then check if the binary=input A

which should always work..i think

plz help I am very lost :s

tyy :))